58 references to TryCreate
PresentationCore (3)
Core\CSharp\MS\Internal\FontCache\CanonicalFontFamilyReference.cs (1)
56
if (Uri.
TryCreate
(locationString, UriKind.Absolute, out absoluteUri))
Core\CSharp\System\Windows\Media\ColorContext.cs (1)
668
if (!Uri.
TryCreate
(profilePathString, UriKind.Absolute, out profilePath))
Core\CSharp\System\Windows\Media\Fonts.cs (1)
106
if (!string.IsNullOrEmpty(location) && Uri.
TryCreate
(location, UriKind.Absolute, out fontLocation))
PresentationFramework (1)
src\Framework\System\Windows\SystemResources.cs (1)
966
if (Uri.
TryCreate
(packUri, UriKind.Absolute, out streamUri))
System (20)
net\System\_UriTypeConverter.cs (1)
106
return Uri.
TryCreate
(str, m_UriKind, out temp);
net\System\Net\_WebProxyDataBuilder.cs (1)
73
if (Uri.
TryCreate
(autoConfigUrl, UriKind.Absolute, out scriptLocation))
net\System\Net\cookie.cs (1)
1392
if (Uri.
TryCreate
(CheckQuoted(m_tokenizer.Value), UriKind.Absolute, out parsed)) {
net\System\Net\cookiecontainer.cs (1)
259
if (!Uri.
TryCreate
(uriSb.ToString(), UriKind.Absolute, out uri))
net\System\Net\DNS.cs (1)
635
if (Uri.
TryCreate
(Uri.UriSchemeHttp + Uri.SchemeDelimiter + host, UriKind.Absolute, out uri))
net\System\Net\HttpListenerRequest.cs (1)
547
bool success = Uri.
TryCreate
(referrer, UriKind.RelativeOrAbsolute, out urlReferrer);
net\System\Net\HttpListenerRequestUriBuilder.cs (3)
118
bool isValid = Uri.
TryCreate
(cookedUriScheme + Uri.SchemeDelimiter + cookedUriHost + cookedUriPath +
147
isValid = Uri.
TryCreate
(cookedUriScheme + Uri.SchemeDelimiter + cookedUriHost + path + cookedUriQuery,
208
if (!Uri.
TryCreate
(requestUriString.ToString(), UriKind.Absolute, out requestUri))
net\System\Net\HttpWebRequest.cs (1)
4743
return Uri.
TryCreate
(sb.ToString(), UriKind.Absolute, out hostUri);
net\System\Net\mail\Attachment.cs (1)
271
if (!Uri.
TryCreate
(part.ContentLocation, UriKind.RelativeOrAbsolute, out uri))
net\System\Net\NetWebProxyFinder.cs (2)
443
bool tryParse = Uri.
TryCreate
("http://" + proxyAuthority, UriKind.Absolute, out uri);
521
bool parsed = Uri.
TryCreate
(url, UriKind.Absolute, out autoProxy);
net\System\Net\webclient.cs (1)
975
if (!Uri.
TryCreate
(path, UriKind.Absolute, out uri))
net\System\Net\WebPermission.cs (1)
383
if (Uri.
TryCreate
(uriString, UriKind.Absolute, out uri))
net\System\Net\WebRequest.cs (1)
380
if (Uri.
TryCreate
(prefix, UriKind.Absolute, out tempUri))
net\System\URI.cs (1)
1754
if (!
TryCreate
(s, UriKind.RelativeOrAbsolute, out obj))
net\System\UriExt.cs (2)
349
if (
TryCreate
(relativeUri, UriKind.RelativeOrAbsolute, out relativeLink))
462
if (!Uri.
TryCreate
(uriString, uriKind, out result))
security\system\security\Authentication\ExtendedProtection\ServiceNameCollection.cs (1)
173
if (!Uri.
TryCreate
(Uri.UriSchemeHttp + Uri.SchemeDelimiter + host, UriKind.Absolute, out constructedUri))
System.Core (1)
System\Security\Cryptography\X509Certificates\AuthenticodeSignatureInformation.cs (1)
40
Uri.
TryCreate
(descriptionUrl, UriKind.RelativeOrAbsolute, out m_descriptionUrl);
System.Data.Entity (1)
System\Data\EntityModel\SchemaObjectModel\SchemaManager.cs (1)
353
Uri.
TryCreate
(baseUri, UriKind.Absolute, out uri) &&
System.Data.Services (1)
System\Data\Services\WebUtil.cs (1)
1629
if (Uri.
TryCreate
(scheme + hostHeader, UriKind.Absolute, out result))
System.Data.Services.Client (1)
System\Data\Services\Client\EntityPropertyMappingAttribute.cs (1)
244
if (!Uri.
TryCreate
(targetNamespaceUri, UriKind.Absolute, out uri))
System.Data.SqlXml (2)
System\Xml\Xsl\Runtime\XmlCollation.cs (1)
154
if (!Uri.
TryCreate
(collationLiteral, UriKind.Absolute, out collationUri)) {
System\Xml\Xsl\SourceLineInfo.cs (1)
88
System.Uri.
TryCreate
(uriString, UriKind.Absolute, out uri) &&
System.IdentityModel (1)
System\IdentityModel\UriUtil.cs (1)
39
return Uri.
TryCreate
(uriString, uriKind, out result);
System.Runtime.Serialization (2)
System\Runtime\Serialization\CodeExporter.cs (1)
1493
if (Uri.
TryCreate
(dataContractNamespace, UriKind.RelativeOrAbsolute, out uri))
System\Runtime\Serialization\DataContract.cs (1)
1778
if (Uri.
TryCreate
(dataContractNs, UriKind.RelativeOrAbsolute, out uri))
System.ServiceModel (12)
System\ServiceModel\Administration\EndpointInstanceProvider.cs (1)
49
if (Uri.
TryCreate
(address, UriKind.Absolute, out uri))
System\ServiceModel\Channels\HttpChannelHelpers.cs (1)
3393
if (Uri.
TryCreate
(value, UriKind.RelativeOrAbsolute, out uri))
System\ServiceModel\Description\ConfigLoader.cs (1)
412
if (!Uri.
TryCreate
(cookedAddress, UriKind.Absolute, out uri))
System\ServiceModel\Description\MetadataLocation.cs (1)
36
if (!Uri.
TryCreate
(value, UriKind.RelativeOrAbsolute, out uri))
System\ServiceModel\Description\ServiceMetadataExtension.cs (2)
220
if (!Uri.
TryCreate
(hostUriString, UriKind.Absolute, out hostUri))
1952
else if (Uri.
TryCreate
(text, UriKind.Absolute, out uri))
System\ServiceModel\Description\ServiceReflector.cs (2)
146
if (!Uri.
TryCreate
(ns, UriKind.RelativeOrAbsolute, out uri))
153
if (!Uri.
TryCreate
(ns, UriKind.RelativeOrAbsolute, out uri))
System\ServiceModel\EndpointAddress.cs (2)
899
if (!Uri.
TryCreate
(address, UriKind.Absolute, out uri))
966
if (!Uri.
TryCreate
(address, UriKind.Absolute, out uri))
System\ServiceModel\Transactions\OletxTransactionHeader.cs (1)
130
if (!Uri.
TryCreate
(identifier, UriKind.Absolute, out uri))
System\ServiceModel\Transactions\WsatRegistrationHeader.cs (1)
161
!Uri.
TryCreate
(contextId, UriKind.Absolute, out uri))
System.ServiceModel.Web (1)
System\ServiceModel\Description\WCFServiceClientProxyGenerator.cs (1)
173
if (Uri.
TryCreate
(ns, UriKind.RelativeOrAbsolute, out uri))
System.Web (7)
Security\FormsAuthentication.cs (1)
914
if (!Uri.
TryCreate
(path, UriKind.Absolute, out absUri))
UI\WebControls\XmlDataSource.cs (2)
448
bool success = Uri.
TryCreate
(path, UriKind.Absolute, out uri);
497
bool success = Uri.
TryCreate
(DataFile, UriKind.Absolute, out uri);
Util\UriUtil.cs (1)
161
if (isValidScheme && Uri.
TryCreate
(inputWithoutQueryFragment, UriKind.Absolute, out uri)) {
Util\UrlPath.cs (1)
723
if (!Uri.
TryCreate
(absUriOrLocalPath, UriKind.Absolute, out absUri)) {
WebSockets\WebSocketUtil.cs (2)
38
bool urisCreatedSuccessfully = Uri.
TryCreate
(workerRequest.GetProtocol() + "://" + hostHeader.Trim(), UriKind.Absolute, out hostHeaderUri) // RFC 2616 (Sec. 14.23): "Host" header doesn't contain the scheme, so we need to prepend
39
&& Uri.
TryCreate
(secWebSocketOriginHeader.Trim(), UriKind.Absolute, out originHeaderUri);
System.Web.Extensions (1)
Compilation\WCFModel\AsmxEndpointPickerExtension.cs (1)
134
if (!System.Uri.
TryCreate
(location, UriKind.Absolute, out uri))
System.Web.Services (2)
System\Web\Services\Description\WebServicesInteroperability.cs (2)
298
bool isAbsoluteUri = Uri.
TryCreate
(ns, UriKind.Absolute, out uri);
473
bool isAbsoluteUri = Uri.
TryCreate
(ns, UriKind.Absolute, out uri);
System.Xml (2)
System\Xml\XmlConvert.cs (2)
1377
if (!Uri.
TryCreate
(s, UriKind.RelativeOrAbsolute, out uri)) {
1393
if (!Uri.
TryCreate
(s, UriKind.RelativeOrAbsolute, out result)) {