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