358 references to UriKind
ComSvcConfig (5)
ComplusEndpointConfigContainer.cs (2)
382if (Uri.IsWellFormedUriString(uri, UriKind.RelativeOrAbsolute)) 410if (Uri.IsWellFormedUriString(uri, UriKind.Absolute))
Tool.cs (2)
223new Uri(address, UriKind.RelativeOrAbsolute), 234new Uri(container.DefaultMexAddress(sourceAppId, component.Component), UriKind.RelativeOrAbsolute),
WasEndpointConfigContainer.cs (1)
233if (Uri.IsWellFormedUriString(uri, UriKind.RelativeOrAbsolute))
PresentationBuildTasks (1)
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (1)
2600CodeFieldReferenceExpression cfreRelUri = new CodeFieldReferenceExpression(new CodeTypeReferenceExpression(typeof(System.UriKind)), "Relative");
PresentationCore (19)
Core\CSharp\MS\Internal\AppModel\SiteOfOriginContainer.cs (1)
322return new Uri(new Uri(codeBase), new Uri(".", UriKind.Relative));
Core\CSharp\MS\Internal\FontCache\CanonicalFontFamilyReference.cs (1)
56if (Uri.TryCreate(locationString, UriKind.Absolute, out absoluteUri))
Core\CSharp\MS\Internal\FontCache\FamilyCollection.cs (1)
358FontSource fontSource = new FontSource(new Uri(FamilyCollection.SxSFontsLocation + _systemCompositeFontsFileNames[index] + Util.CompositeFontExtension, UriKind.Absolute),
Core\CSharp\MS\Internal\FontCache\FontCacheUtil.cs (1)
442_windowsFontsUriObject = new Uri(_windowsFontsLocalPath, UriKind.Absolute);
Core\CSharp\MS\Internal\FontCache\FontSourceCollection.cs (2)
256fontSources.Add(new FontSource(new Uri(file, UriKind.Absolute), _isWindowsFonts, true)); 265fontSources.Add(new FontSource(new Uri(file, UriKind.Absolute), _isWindowsFonts, isComposite));
Core\CSharp\MS\Internal\FontFace\CompositeFontParser.cs (2)
893throw new FileFormatException(new Uri(_reader.BaseURI, UriKind.RelativeOrAbsolute), x); 963throw new FileFormatException(new Uri(fileName, UriKind.RelativeOrAbsolute), message, innerException);
Core\CSharp\System\Windows\Media\Color.cs (2)
309context.ProfileUri.IsAbsoluteUri ? UriKind.Absolute : UriKind.Relative);
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))
Core\CSharp\System\Windows\Navigation\BaseUriHelper.cs (4)
204Uri partUri = new Uri(uri.AbsolutePath, UriKind.Relative); 498source = new Uri(uri.AbsolutePath, UriKind.Relative); 499baseUri = new Uri(uri.GetLeftPart(UriPartial.Authority), UriKind.Absolute); 553return new Uri(appendedUri, UriKind.Relative);
Shared\MS\Internal\SecurityHelper.cs (2)
1275if (String.Compare((System.Windows.Navigation.BaseUriHelper.GetResolvedUri(System.Windows.Navigation.BaseUriHelper.BaseUri, new Uri(uri, UriKind.RelativeOrAbsolute))).Scheme, 1280if(!SecurityHelper.CallerHasWebPermission(new Uri(uri,UriKind.RelativeOrAbsolute)))
Shared\System\Windows\Media\TypeConverterHelper.cs (1)
70uriHolder.OriginalUri = new Uri((string)inputString, UriKind.RelativeOrAbsolute);
PresentationFramework (25)
src\Framework\MS\Internal\AppModel\ContentFilePart.cs (1)
113return MS.Internal.MimeTypeMapper.GetMimeTypeFromUri(new Uri(Uri.ToString(),UriKind.RelativeOrAbsolute)).ToString();
src\Framework\MS\Internal\AppModel\ResourcePart.cs (1)
126return MS.Internal.MimeTypeMapper.GetMimeTypeFromUri(new Uri(_name,UriKind.RelativeOrAbsolute)).ToString();
src\Framework\System\Windows\Annotations\Storage\XmlStreamStore.cs (2)
916if (!Uri.IsWellFormedUriString(xmlNamespace, UriKind.RelativeOrAbsolute)) 920Uri namespaceUri = new Uri(xmlNamespace, UriKind.RelativeOrAbsolute);
src\Framework\System\Windows\Controls\WebBrowser.cs (1)
431SecurityHelper.DemandWebPermission(new Uri(innerURL, UriKind.Absolute));
src\Framework\System\Windows\Data\XmlNamespaceMappingCollection.cs (1)
240Uri uri = new Uri(ns, UriKind.RelativeOrAbsolute);
src\Framework\System\Windows\Documents\DocumentReference.cs (1)
86DocumentsTrace.FixedDocumentSequence.IDF.Trace(string.Format("DocumentReference.GetDocument ({0}, {1})", Source == null ? new Uri("", UriKind.RelativeOrAbsolute) : Source, forceReload));
src\Framework\System\Windows\Documents\FixedPage.cs (3)
677inputUri = new Uri(inputUriStringWithoutFragment, UriKind.RelativeOrAbsolute); 685inputUri = new Uri(startPartUriString, UriKind.RelativeOrAbsolute); 698absoluteUri = new Uri(absoluteUriString.ToString(), UriKind.RelativeOrAbsolute);
src\Framework\System\Windows\Documents\FixedSchema.cs (1)
168Uri targetUri = PackUriHelper.ResolvePartUri(_baseUri, new Uri(uriAttr, UriKind.Relative));
src\Framework\System\Windows\Documents\FixedSOMImage.cs (2)
65imageUri = new Uri(imageSource.ToString(), UriKind.RelativeOrAbsolute); 86imageUri = new Uri(imageSource.ToString(), UriKind.RelativeOrAbsolute);
src\Framework\System\Windows\Documents\RtfToXamlReader.cs (1)
8423if (!Uri.IsWellFormedUriString(pictureUri, UriKind.Absolute))
src\Framework\System\Windows\Documents\WpfPayload.cs (5)
341Uri payloadUri = new Uri("payload://wpf" + newWpfPayoutCount, UriKind.Absolute); 488Uri imagePartUri = new Uri(XamlPayloadDirectory + imagePartUriString, UriKind.Relative); 724Uri imagePartUri = new Uri(XamlPayloadDirectory + imagePartUriString, UriKind.Relative); 743Uri imagePartUri = new Uri(XamlPayloadDirectory + imageSourceString, UriKind.Relative); 808Uri entryPartUri = new Uri(XamlPayloadDirectory + XamlEntryName, UriKind.Relative);
src\Framework\System\Windows\Interop\DocobjHost.cs (1)
848Uri requestedUri = new Uri(url, UriKind.Absolute);
src\Framework\System\Windows\Markup\ParserContext.cs (1)
122_baseUri = new Uri(xmlParserContext.BaseURI, UriKind.RelativeOrAbsolute);
src\Framework\System\Windows\Navigation\JournalEntry.cs (1)
385BaseUriHelper.GetAssemblyNameAndPart(new Uri(relativeUri, UriKind.Relative), out part, out assy, out assyVers, out assyKey);
src\Framework\System\Windows\ResourceDictionary.cs (1)
2556public ResourceDictionarySourceUriWrapper(Uri originalUri, Uri versionedUri) : base(originalUri.OriginalString, UriKind.RelativeOrAbsolute)
src\Framework\System\Windows\SystemResources.cs (1)
966if (Uri.TryCreate(packUri, UriKind.Absolute, out streamUri))
src\Framework\System\Windows\ThemeDictionaryExtension.cs (1)
131return new System.Uri(uri.ToString(), System.UriKind.RelativeOrAbsolute);
System (65)
net\System\_UriTypeConverter.cs (13)
27private UriKind m_UriKind; 30public UriTypeConverter() : this(UriKind.RelativeOrAbsolute) { } 32internal UriTypeConverter(UriKind uriKind) 75m_UriKind == UriKind.RelativeOrAbsolute ? uri.IsAbsoluteUri ? UriKind.Absolute : UriKind.Relative : m_UriKind); 86ConstructorInfo ci = typeof(Uri).GetConstructor(BindingFlags.Public | BindingFlags.Instance, null, new Type[]{typeof(string), typeof(UriKind)}, null); 88m_UriKind == UriKind.RelativeOrAbsolute ? uri.IsAbsoluteUri ? UriKind.Absolute : UriKind.Relative : m_UriKind }); 96m_UriKind == UriKind.RelativeOrAbsolute ? uri.IsAbsoluteUri ? UriKind.Absolute : UriKind.Relative : m_UriKind);
net\System\Net\_ServiceNameStore.cs (1)
126if (Uri.IsWellFormedUriString(uriPrefix, UriKind.Absolute))
net\System\Net\_WebProxyDataBuilder.cs (1)
73if (Uri.TryCreate(autoConfigUrl, UriKind.Absolute, out scriptLocation))
net\System\Net\Configuration\ProxyElement.cs (2)
105new UriTypeConverter(UriKind.Absolute), 123new UriTypeConverter(UriKind.Absolute),
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)
119cookedUriQuery, UriKind.Absolute, out requestUri); 148UriKind.Absolute, out requestUri); 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 (10)
399CreateThis(uriString, false, UriKind.Absolute); 413CreateThis(uriString, dontEscape, UriKind.Absolute); 436public Uri(string uriString, UriKind uriKind) 465CreateThis(relativeUri, dontEscape, UriKind.RelativeOrAbsolute); 497CreateThis(relativeUri, dontEscape, UriKind.Absolute); 545CreateThis(newUriString, dontEscape, UriKind.Absolute); 658CreateThis(uriString, false, UriKind.Absolute); 666CreateThis(uriString, false, UriKind.Relative); 1754if (!TryCreate(s, UriKind.RelativeOrAbsolute, out obj)) 1936return new Uri(relativeUriString, UriKind.Relative);
net\System\uribuilder.cs (1)
46Uri tryUri = new Uri(uri, UriKind.RelativeOrAbsolute);
net\System\UriExt.cs (22)
32private void CreateThis(string uri, bool dontEscape, UriKind uriKind) 36if ((int)uriKind < (int)UriKind.RelativeOrAbsolute || (int)uriKind > (int)UriKind.Relative) { 53private void InitializeUri(ParsingError err, UriKind uriKind, out UriFormatException e) 66uriKind != UriKind.Absolute && 67(uriKind == UriKind.Relative || (m_String.Length >= 2 && (m_String[0] != '\\' || m_String[1] != '\\')))) 81else if (uriKind == UriKind.Relative && InFact(Flags.DosPath)) 126if (uriKind != UriKind.Absolute && err <= ParsingError.LastRelativeUriOkErrIndex) 136else if (uriKind == UriKind.Relative) 147if (m_iriParsing && hasUnicode && (uriKind == UriKind.Absolute || err == ParsingError.None)) 182if (uriKind != UriKind.Absolute && err != ParsingError.None 197else if (uriKind == UriKind.Relative) 230else if (err != ParsingError.None && uriKind != UriKind.Absolute 334public static bool TryCreate(string uriString, UriKind uriKind, out Uri result) 349if (TryCreate(relativeUri, UriKind.RelativeOrAbsolute, out relativeLink)) 391result = CreateHelper(newUriString, dontEscape, UriKind.Absolute, ref e); 458public static bool IsWellFormedUriString(string uriString, UriKind uriKind) 690internal static Uri CreateHelper(string uriString, bool dontEscape, UriKind uriKind, ref UriFormatException e) 694if ((int)uriKind < (int)UriKind.RelativeOrAbsolute || (int)uriKind > (int)UriKind.Relative){ 709if (uriKind != UriKind.Absolute && err <= ParsingError.LastRelativeUriOkErrIndex) 966uriLink = CreateHelper(newUriString, dontEscape, UriKind.Absolute, ref e);
security\system\security\Authentication\ExtendedProtection\ServiceNameCollection.cs (1)
173if (!Uri.TryCreate(Uri.UriSchemeHttp + Uri.SchemeDelimiter + host, UriKind.Absolute, out constructedUri))
System.Activities.Core.Presentation (1)
System\ServiceModel\Activities\Presentation\MessagingContentPropertyEditorResources.xaml.cs (1)
25UriKind.RelativeOrAbsolute);
System.Activities.Presentation (8)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyInspector.xaml.cs (1)
968UriKind.RelativeOrAbsolute));
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Resources\PropertyInspectorResources.cs (1)
94UriKind.RelativeOrAbsolute);
System.Activities.Presentation\System\Activities\Presentation\View\EditorResources.cs (1)
25UriKind.RelativeOrAbsolute);
System.Activities.Presentation\System\Activities\Presentation\WorkflowDesignerColors.cs (2)
117UriKind.RelativeOrAbsolute); 135UriKind.RelativeOrAbsolute);
System.Activities.Presentation\System\Activities\Presentation\WorkflowDesignerIcons.cs (3)
128Uri resourceUri = new Uri(string.Concat(typeof(WorkflowDesignerIcons).Assembly.GetName().Name, @";component/Themes/Icons.WindowsApp.xaml"), UriKind.RelativeOrAbsolute); 166Uri resourceUri = new Uri(string.Concat(typeof(WorkflowDesignerIcons).Assembly.GetName().Name, @";component/Themes/Icons.Default.xaml"), UriKind.RelativeOrAbsolute); 199BitmapImage image = new BitmapImage(new Uri(uri, UriKind.Absolute));
System.Core (1)
System\Security\Cryptography\X509Certificates\AuthenticodeSignatureInformation.cs (1)
40Uri.TryCreate(descriptionUrl, UriKind.RelativeOrAbsolute, out m_descriptionUrl);
System.Data (8)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyInspector.xaml.cs (1)
968UriKind.RelativeOrAbsolute));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Resources\PropertyInspectorResources.cs (1)
94UriKind.RelativeOrAbsolute);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\EditorResources.cs (1)
25UriKind.RelativeOrAbsolute);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowDesignerColors.cs (2)
117UriKind.RelativeOrAbsolute); 135UriKind.RelativeOrAbsolute);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowDesignerIcons.cs (3)
128Uri resourceUri = new Uri(string.Concat(typeof(WorkflowDesignerIcons).Assembly.GetName().Name, @";component/Themes/Icons.WindowsApp.xaml"), UriKind.RelativeOrAbsolute); 166Uri resourceUri = new Uri(string.Concat(typeof(WorkflowDesignerIcons).Assembly.GetName().Name, @";component/Themes/Icons.Default.xaml"), UriKind.RelativeOrAbsolute); 199BitmapImage image = new BitmapImage(new Uri(uri, UriKind.Absolute));
System.Data.Entity (1)
System\Data\EntityModel\SchemaObjectModel\SchemaManager.cs (1)
353Uri.TryCreate(baseUri, UriKind.Absolute, out uri) &&
System.Data.Services (9)
parent\Client\System\Data\Services\Client\XmlUtil.cs (2)
36uri = new Uri(CommonUtil.UriToString(uri).ToUpper(CultureInfo.InvariantCulture), UriKind.RelativeOrAbsolute); 57uri = new Uri(value, UriKind.RelativeOrAbsolute);
System\Data\Services\Providers\DataServiceStreamProviderWrapper.cs (1)
299return new Uri(DataServiceStreamProviderWrapper.GetStreamEditMediaUri(mediaLinkEntryUri), UriKind.RelativeOrAbsolute);
System\Data\Services\RequestUriProcessor.cs (1)
235Uri referenceAsUri = new Uri(reference, UriKind.RelativeOrAbsolute);
System\Data\Services\Serializers\SyndicationSerializer.cs (4)
144link.Uri = new Uri(href, UriKind.RelativeOrAbsolute); 341link.Uri = new Uri(relativeUri, UriKind.Relative); 582var uri = new Uri(relativeUri, UriKind.Relative); 1077link.Uri = new Uri(propertyRelativeUri, UriKind.RelativeOrAbsolute);
System\Data\Services\WebUtil.cs (1)
1629if (Uri.TryCreate(scheme + hostHeader, UriKind.Absolute, out result))
System.Data.Services.Client (29)
System\Data\Services\Client\ALinq\UriWriter.cs (1)
68uri = Util.CreateUri(context.BaseUriWithSlash, Util.CreateUri(writer.uriBuilder.ToString(), UriKind.Relative));
System\Data\Services\Client\AtomParser.cs (4)
546targetEntry.MediaContentUri = new Uri(propertyValue, UriKind.RelativeOrAbsolute); 928Uri idUri = Util.CreateUri(idText, UriKind.RelativeOrAbsolute); 1042Uri uri = Util.CreateUri(href, UriKind.RelativeOrAbsolute); 1045Uri baseUri = Util.CreateUri(this.reader.BaseURI, UriKind.RelativeOrAbsolute);
System\Data\Services\Client\ClientConvert.cs (1)
184return Util.CreateUri(propertyValue, UriKind.RelativeOrAbsolute);
System\Data\Services\Client\DataServiceContext.cs (13)
163!Uri.IsWellFormedUriString(CommonUtil.UriToString(serviceRoot), UriKind.Absolute) || 176this.baseUriWithSlash = Util.CreateUri(serviceRootString + "/", UriKind.Absolute); 598Uri metadataUri = Util.CreateUri(this.baseUriWithSlash.OriginalString + XmlConstants.UriMetadataSegment, UriKind.Absolute); 1633identity = Util.CreateUri(identityUri, UriKind.Absolute); 1748Uri editLink = new Uri(location, UriKind.Absolute); 2356return Util.CreateUri(builder.ToString(), UriKind.Absolute); 2718relative = Util.CreateUri(XmlConstants.UriLinkSegment + "/" + CommonUtil.UriToString(navigationPropertyUri), UriKind.Relative); 2722relative = Util.CreateUri(XmlConstants.UriLinkSegment + "/" + binding.SourceProperty, UriKind.Relative); 3267relativeUri = Util.CreateUri(XmlConstants.UriValueSegment, UriKind.Relative); 3271relativeUri = Util.CreateUri(propertyName + (null != property.CollectionType ? "()" : String.Empty), UriKind.Relative); 3558Uri tmp = Util.CreateUri(entitySetName, UriKind.RelativeOrAbsolute); 5050Uri requestUri = Util.CreateUri(this.Context.baseUriWithSlash, Util.CreateUri("$batch", UriKind.Relative)); 5549editLink = Util.CreateUri(location, UriKind.Absolute);
System\Data\Services\Client\EntityDescriptor.cs (4)
386Util.CreateUri(baseUriWithSlash, new Uri("$" + this.parentDescriptor.ChangeOrder.ToString(CultureInfo.InvariantCulture), UriKind.Relative)), 387Util.CreateUri(this.parentProperty, UriKind.Relative)); 479return Util.CreateUri(this.entitySetName, UriKind.Relative); 483return Util.CreateUri(this.parentProperty, UriKind.Relative);
System\Data\Services\Client\EntityPropertyMappingAttribute.cs (1)
244if (!Uri.TryCreate(targetNamespaceUri, UriKind.Absolute, out uri))
System\Data\Services\Client\Util.cs (3)
266internal static Uri CreateUri(string value, UriKind kind) 288requestUri = new Uri(baseUri, Util.CreateUri(requestUri.OriginalString.TrimStart(Util.ForwardSlash), UriKind.Relative)); 297requestUri = Util.CreateUri(baseUri.OriginalString + "/" + requestUri.OriginalString.TrimStart(Util.ForwardSlash), UriKind.Absolute);
System\Data\Services\Client\Xml\XmlWrappingReader.cs (1)
468newBaseUri = Util.CreateUri(baseAttribute, UriKind.RelativeOrAbsolute);
System\Data\Services\Client\XmlUtil.cs (1)
57uri = new Uri(value, UriKind.RelativeOrAbsolute);
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 (83)
System\IdentityModel\Configuration\IdentityConfiguration.cs (2)
563handlerConfiguration.AudienceRestriction.AllowedAudienceUris.Add(new Uri(audienceUriElement.Value, UriKind.RelativeOrAbsolute)); 664handlerConfiguration.AudienceRestriction.AllowedAudienceUris.Add(new Uri(audienceUriElement.Value, UriKind.RelativeOrAbsolute));
System\IdentityModel\Metadata\MetadataSerializer.cs (14)
447if (!UriUtil.CanCreateValidUri(claimType, UriKind.Absolute)) 896if (!UriUtil.TryCreateValidUri(binding, UriKind.RelativeOrAbsolute, out bindingUri)) 904if (!UriUtil.TryCreateValidUri(location, UriKind.RelativeOrAbsolute, out locationUri)) 923if (!UriUtil.TryCreateValidUri(responseLocation, UriKind.RelativeOrAbsolute, out responseUri)) 1006if (!String.IsNullOrEmpty(algorithm) && UriUtil.CanCreateValidUri(algorithm, UriKind.Absolute)) 1145if (!UriUtil.TryCreateValidUri(uriContent, UriKind.RelativeOrAbsolute, out uri)) 1330if (!UriUtil.TryCreateValidUri(binding, UriKind.RelativeOrAbsolute, out bindingUri)) 1338if (!UriUtil.TryCreateValidUri(location, UriKind.RelativeOrAbsolute, out locationUri)) 1348if (!UriUtil.TryCreateValidUri(responseLocation, UriKind.RelativeOrAbsolute, out responseUri)) 1413if (!UriUtil.TryCreateValidUri(errorUrlString, UriKind.RelativeOrAbsolute, out errorUrl)) 1683if (!UriUtil.CanCreateValidUri(nameId, UriKind.Absolute)) 1841if (!UriUtil.TryCreateValidUri(tokenType, UriKind.Absolute, out tokenTypeUri)) 2100if (!UriUtil.CanCreateValidUri(claim.ClaimType, UriKind.Absolute)) 3206if (!UriUtil.CanCreateValidUri(value, UriKind.Absolute))
System\IdentityModel\Protocols\WSTrust\WSTrust13RequestSerializer.cs (3)
76if (!UriUtil.CanCreateValidUri(rst.KeyWrapAlgorithm, UriKind.Absolute)) 133if (!UriUtil.CanCreateValidUri(rst.KeyWrapAlgorithm, UriKind.Absolute)) 324if (!UriUtil.CanCreateValidUri(secondaryParameters.KeyWrapAlgorithm, UriKind.Absolute))
System\IdentityModel\Protocols\WSTrust\WSTrustSerializationHelper.cs (42)
94if (!UriUtil.CanCreateValidUri(rst.TokenType, UriKind.Absolute)) 176if ((rst.Claims.Dialect != null) && !UriUtil.CanCreateValidUri(rst.Claims.Dialect, UriKind.Absolute)) 411if (!UriUtil.CanCreateValidUri(rst.SignWith, UriKind.Absolute)) 422if (!UriUtil.CanCreateValidUri(rst.EncryptWith, UriKind.Absolute)) 439if (!UriUtil.CanCreateValidUri(rst.AuthenticationType, UriKind.Absolute)) 450if (!UriUtil.CanCreateValidUri(rst.EncryptionAlgorithm, UriKind.Absolute)) 461if (!UriUtil.CanCreateValidUri(rst.CanonicalizationAlgorithm, UriKind.Absolute)) 472if (!UriUtil.CanCreateValidUri(rst.SignatureAlgorithm, UriKind.Absolute)) 607if (string.IsNullOrEmpty(attrValue) || !UriUtil.TryCreateValidUri(attrValue, UriKind.Absolute, out name)) 614if (!string.IsNullOrEmpty(attrValue) && !UriUtil.TryCreateValidUri(attrValue, UriKind.Absolute, out scope)) 922if ((claims.Dialect != null) && !UriUtil.CanCreateValidUri(claims.Dialect, UriKind.Absolute)) 980if (!UriUtil.CanCreateValidUri((string)elementValue, UriKind.Absolute)) 991if (!UriUtil.CanCreateValidUri((string)elementValue, UriKind.Absolute)) 1075if (!UriUtil.CanCreateValidUri((string)elementValue, UriKind.Absolute)) 1086if (!UriUtil.CanCreateValidUri((string)elementValue, UriKind.Absolute)) 1119if (!UriUtil.CanCreateValidUri((string)elementValue, UriKind.Absolute)) 1130if (!UriUtil.CanCreateValidUri((string)elementValue, UriKind.Absolute)) 1141if (!UriUtil.CanCreateValidUri((string)elementValue, UriKind.Absolute)) 1152if (!UriUtil.CanCreateValidUri((string)elementValue, UriKind.Absolute)) 1565if (!UriUtil.CanCreateValidUri(rstr.TokenType, UriKind.Absolute)) 1582if (!UriUtil.CanCreateValidUri(rstr.AuthenticationType, UriKind.Absolute)) 1593if (!UriUtil.CanCreateValidUri(rstr.EncryptionAlgorithm, UriKind.Absolute)) 1604if (!UriUtil.CanCreateValidUri(rstr.CanonicalizationAlgorithm, UriKind.Absolute)) 1615if (!UriUtil.CanCreateValidUri(rstr.SignatureAlgorithm, UriKind.Absolute)) 1626if (!UriUtil.CanCreateValidUri(rstr.SignWith, UriKind.Absolute)) 1637if (!UriUtil.CanCreateValidUri(rstr.EncryptWith, UriKind.Absolute)) 1962if (!UriUtil.CanCreateValidUri((string)elementValue, UriKind.Absolute)) 1973if (!UriUtil.CanCreateValidUri((string)elementValue, UriKind.Absolute)) 1990if (!UriUtil.CanCreateValidUri((string)elementValue, UriKind.Absolute)) 2001if (!UriUtil.CanCreateValidUri((string)elementValue, UriKind.Absolute)) 2012if (!UriUtil.CanCreateValidUri((string)elementValue, UriKind.Absolute)) 2023if (!UriUtil.CanCreateValidUri((string)elementValue, UriKind.Absolute)) 2034if (!UriUtil.CanCreateValidUri((string)elementValue, UriKind.Absolute)) 2045if (!UriUtil.CanCreateValidUri((string)elementValue, UriKind.Absolute)) 2095if (!UriUtil.CanCreateValidUri(computedKeyAlgorithm, UriKind.Absolute)) 2125if (!UriUtil.CanCreateValidUri(computedKeyAlgorithm, UriKind.Absolute)) 2140if (!UriUtil.CanCreateValidUri(computedKeyAlgorithmAsStr, UriKind.Absolute)) 2212if (!UriUtil.TryCreateValidUri(attrValue, UriKind.Absolute, out valueType)) 2226if (!UriUtil.TryCreateValidUri(attrValue, UriKind.Absolute, out encodingType)) 2444if (!UriUtil.CanCreateValidUri(requestType, UriKind.Absolute)) 2711if (!UriUtil.CanCreateValidUri(incomingKeyType, UriKind.Absolute)) 2751if (!UriUtil.CanCreateValidUri(keyType, UriKind.Absolute))
System\IdentityModel\Selectors\SamlSecurityTokenAuthenticator.cs (1)
151else if (Uri.IsWellFormedUriString(this.allowedAudienceUris[j], UriKind.Absolute))
System\IdentityModel\Tokens\Saml2AuthorizationDecisionStatement.cs (1)
22public static readonly Uri EmptyResource = new Uri(string.Empty, UriKind.Relative);
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (16)
924return ReadSimpleUriElement(reader, UriKind.Absolute); 928internal static Uri ReadSimpleUriElement(XmlReader reader, UriKind kind) 934internal static Uri ReadSimpleUriElement(XmlReader reader, UriKind kind, bool allowLaxReading) 957throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(kind == UriKind.RelativeOrAbsolute ? SR.ID0019 : SR.ID0013)); 1100if (!UriUtil.CanCreateValidUri(nameFormat, UriKind.Absolute)) 1372if (!UriUtil.TryCreateValidUri(this.DenormalizeAuthenticationType(authenticationMethod), UriKind.Absolute, out saml2AuthenticationClass)) 1464if (nameIdentifierFormat != null && UriUtil.CanCreateValidUri(nameIdentifierFormat, UriKind.Absolute)) 2383if (!UriUtil.CanCreateValidUri(attributeValue, UriKind.Absolute)) 3000if (!UriUtil.CanCreateValidUri(value, UriKind.Absolute)) 3455audienceRestriction = new Saml2AudienceRestriction(ReadSimpleUriElement(reader, UriKind.RelativeOrAbsolute, true)); 3458audienceRestriction.Audiences.Add(ReadSimpleUriElement(reader, UriKind.RelativeOrAbsolute, true)); 3903if (!UriUtil.CanCreateValidUri(value, UriKind.Absolute)) 4605if (!UriUtil.CanCreateValidUri(value, UriKind.Absolute)) 4642if (!UriUtil.CanCreateValidUri(nameIdentifier.Value, UriKind.Absolute)) 5130if (!UriUtil.CanCreateValidUri(method, UriKind.Absolute)) 5305if (!UriUtil.CanCreateValidUri(value, UriKind.Absolute))
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (1)
2101audienceRestrictionCondition.Audiences.Add(new Uri(audience, UriKind.RelativeOrAbsolute));
System\IdentityModel\Tokens\SecurityTokenDescriptor.cs (1)
55if (!UriUtil.CanCreateValidUri(value, UriKind.Absolute))
System\IdentityModel\UriUtil.cs (2)
21public static bool CanCreateValidUri(string uriString, UriKind uriKind) 37public static bool TryCreateValidUri(string uriString, UriKind uriKind, out Uri result)
System.Runtime.Serialization (4)
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\Runtime\Serialization\XmlReaderDelegator.cs (2)
768return new Uri(str, UriKind.RelativeOrAbsolute); 785return new Uri(str, UriKind.RelativeOrAbsolute);
System.Security (1)
system\security\cryptography\xml\reference.cs (1)
415System.Uri uri = new System.Uri(m_uri, UriKind.RelativeOrAbsolute);
System.ServiceModel (39)
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\ServiceDebugBehavior.cs (3)
184mex.HttpHelpPageUrl = host.GetVia(Uri.UriSchemeHttp, this.httpHelpPageUrl == null ? new Uri(string.Empty, UriKind.Relative) : this.httpHelpPageUrl); 188mex.HttpsHelpPageUrl = host.GetVia(Uri.UriSchemeHttps, this.httpsHelpPageUrl == null ? new Uri(string.Empty, UriKind.Relative) : this.httpsHelpPageUrl); 194Uri address = host.GetVia(scheme, url == null ? new Uri(string.Empty, UriKind.Relative) : url);
System\ServiceModel\Description\ServiceMetadataBehavior.cs (4)
24static readonly Uri emptyUri = new Uri(String.Empty, UriKind.Relative); 235Uri address = host.GetVia(scheme, url == null ? new Uri(string.Empty, UriKind.Relative) : url); 254mex.HttpGetUrl = host.GetVia(Uri.UriSchemeHttp, this.httpGetUrl == null ? new Uri(string.Empty, UriKind.Relative) : this.httpGetUrl); 255mex.HttpsGetUrl = host.GetVia(Uri.UriSchemeHttps, this.httpsGetUrl == null ? new Uri(string.Empty, UriKind.Relative) : this.httpsGetUrl);
System\ServiceModel\Description\ServiceMetadataExtension.cs (3)
27static readonly Uri EmptyUri = new Uri(String.Empty, UriKind.Relative); 220if (!Uri.TryCreate(hostUriString, UriKind.Absolute, out hostUri)) 1952else if (Uri.TryCreate(text, UriKind.Absolute, out uri))
System\ServiceModel\Description\ServiceReflector.cs (3)
30if (Uri.IsWellFormedUriString(path, UriKind.Absolute) || path == String.Empty) 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\ServiceConfiguration.cs (1)
204return this.AddServiceEndpoint(contractType, binding, new Uri(address, UriKind.RelativeOrAbsolute));
System\ServiceModel\ServiceHost.cs (4)
32internal static readonly Uri EmptyUri = new Uri(string.Empty, UriKind.RelativeOrAbsolute); 327ServiceEndpoint endpoint = this.AddServiceEndpoint(implementedContract, binding, new Uri(address, UriKind.RelativeOrAbsolute)); 435Uri absoluteUri = MakeAbsoluteUri(new Uri(relativeAddress, UriKind.Relative), endpoint.Binding); 1731ServiceEndpoint endpoint = this.AddServiceEndpoint(implementedContract, binding, new Uri(address, UriKind.RelativeOrAbsolute));
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (3)
308result.ImageUrl = new Uri(reader.ReadElementString(), UriKind.RelativeOrAbsolute); 736result = new UrlSyndicationContent(new Uri(src, UriKind.RelativeOrAbsolute), type); 1082link.Uri = (val != null) ? new Uri(val, UriKind.RelativeOrAbsolute) : null;
System\ServiceModel\Syndication\AtomPub10ServiceDocumentFormatter.cs (3)
157ReadReferencedCategories(reader, referencedCategories, baseUri, new Uri(link, UriKind.RelativeOrAbsolute), version, preserveElementExtensions, preserveAttributeExtensions, maxExtensionSize); 461result.Link = new Uri(reader.Value, UriKind.RelativeOrAbsolute); 564result.BaseUri = new Uri(reader.Value, UriKind.RelativeOrAbsolute);
System\ServiceModel\Syndication\FeedUtils.cs (1)
82Uri newBaseUri = new Uri(newBase, UriKind.RelativeOrAbsolute);
System\ServiceModel\Syndication\Rss20FeedFormatter.cs (6)
506link.Uri = new Uri(uri, UriKind.RelativeOrAbsolute); 685feed.Links.Add(SyndicationLink.CreateSelfLink(new Uri(val, UriKind.RelativeOrAbsolute))); 737result.Links.Add(SyndicationLink.CreateAlternateLink(new Uri(fallbackAlternateLink, UriKind.RelativeOrAbsolute))); 783link.Uri = new Uri(val, UriKind.RelativeOrAbsolute); 916result.BaseUri = new Uri(baseUri, UriKind.RelativeOrAbsolute); 981result.ImageUrl = new Uri(reader.ReadElementString(), UriKind.RelativeOrAbsolute);
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.Activities (3)
System\ServiceModel\Activities\Description\WorkflowInstanceManagementBehavior.cs (1)
144Uri controlEndpointAddress = ServiceHost.GetVia(controlEndpointBinding.Scheme, new Uri(ControlEndpointAddress, UriKind.Relative), workflowServiceHost.InternalBaseAddresses);
System\ServiceModel\Activities\WorkflowControlEndpoint.cs (1)
29new EndpointAddress(new Uri(WorkflowControlEndpoint.DefaultBaseUri, new Uri(Guid.NewGuid().ToString(), UriKind.Relative))))
System\ServiceModel\Activities\WorkflowServiceHost.cs (1)
292return AddServiceEndpoint(serviceContractName, binding, new Uri(address, UriKind.RelativeOrAbsolute), listenUri, behaviorConfigurationName);
System.ServiceModel.Discovery (6)
System\ServiceModel\Discovery\DiscoveryMessageSequence.cs (1)
161this.SequenceId = new Uri(sequenceIdString, UriKind.RelativeOrAbsolute);
System\ServiceModel\Discovery\SerializationUtility.cs (5)
66public static void ParseUriList(string listOfUrisAsString, Collection<Uri> uriCollection, UriKind uriKind) 82if (uriKind == UriKind.Absolute) 326scopeMatchBy = new Uri(scopeMatchByStr, UriKind.RelativeOrAbsolute); 350SerializationUtility.ParseUriList(listOfUrisAsString, scopes, UriKind.Absolute); 372SerializationUtility.ParseUriList(listOfUrisAsString, listenUris, UriKind.RelativeOrAbsolute);
System.ServiceModel.Web (2)
System\ServiceModel\Description\WCFServiceClientProxyGenerator.cs (1)
173if (Uri.TryCreate(ns, UriKind.RelativeOrAbsolute, out uri))
System\ServiceModel\Dispatcher\QueryStringConverter.cs (1)
142return (!string.IsNullOrEmpty(parameter)) ? new Uri(parameter, UriKind.RelativeOrAbsolute) : null;
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 (2)
Compilation\WCFModel\AsmxEndpointPickerExtension.cs (1)
134if (!System.Uri.TryCreate(location, UriKind.Absolute, out uri))
UI\ScriptResourceMapping.cs (1)
44!Uri.IsWellFormedUriString(path, UriKind.Absolute)) { // http://...
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.WorkflowServices (2)
System\ServiceModel\WorkflowServiceHost.cs (2)
87return this.AddServiceEndpoint(implementedContract, binding, new Uri(address, UriKind.RelativeOrAbsolute)); 102return this.AddServiceEndpoint(implementedContract, binding, new Uri(address, UriKind.RelativeOrAbsolute), listenUri);
System.Xml (14)
System\Xml\Core\XmlValidatingReaderImpl.cs (1)
895validator.BaseUri = ( resolver == null ) ? new Uri( outerReader.BaseURI, UriKind.RelativeOrAbsolute ) : resolver.ResolveUri( null, outerReader.BaseURI );
System\Xml\Resolvers\XmlPreloadedResolver.cs (4)
185return new Uri(relativeUri, UriKind.Relative); 193return new Uri(relativeUri, UriKind.Relative); 351mappings.Add(new Uri(dtdInfo.publicId, UriKind.RelativeOrAbsolute), dtdInfo); 352mappings.Add(new Uri(dtdInfo.systemId, UriKind.RelativeOrAbsolute), dtdInfo);
System\Xml\Schema\Parser.cs (1)
85schema.BaseUri = new Uri(reader.BaseURI, UriKind.RelativeOrAbsolute);
System\Xml\Schema\ParserAsync.cs (1)
45schema.BaseUri = new Uri(reader.BaseURI, UriKind.RelativeOrAbsolute);
System\Xml\Schema\XmlSchemaSet.cs (3)
328Uri schemaUri = new Uri(schemaDocument.BaseURI, UriKind.RelativeOrAbsolute); 822if (FindSchemaByNSAndUrl(new Uri(reader.BaseURI, UriKind.RelativeOrAbsolute), targetNamespace, null) != null) { 832if (IsSchemaLoaded(new Uri(reader.BaseURI, UriKind.RelativeOrAbsolute), targetNamespace, out schema)) {
System\Xml\XmlConvert.cs (2)
1377if (!Uri.TryCreate(s, UriKind.RelativeOrAbsolute, out uri)) { 1393if (!Uri.TryCreate(s, UriKind.RelativeOrAbsolute, out result)) {
System\Xml\XmlResolver.cs (1)
50Uri uri = new Uri( relativeUri, UriKind.RelativeOrAbsolute );
System\Xml\XmlSecureResolver.cs (1)
49Uri uri = new Uri(securityUrl, UriKind.RelativeOrAbsolute);
WindowsBase (19)
Base\MS\Internal\IO\Packaging\InternalRelationshipCollection.cs (1)
406Uri targetUri = new Uri(targetAttributeValue, UriKind.RelativeOrAbsolute);
Base\MS\Internal\IO\Packaging\PartBasedPackageProperties.cs (1)
822return PackUriHelper.CreatePartUri(new Uri(propertyPartName, UriKind.Relative));
Base\MS\Internal\IO\Packaging\PieceNameHelper.cs (1)
332Uri partUri = new Uri(ZipPackage.GetOpcNameFromZipItemName(parseResults.PrefixName), UriKind.Relative);
Base\MS\Internal\IO\Packaging\XmlSignatureManifest.cs (1)
616uri = PackUriHelper.ValidatePartUri(new Uri(attrValue.Substring(0, index), UriKind.Relative));
Base\System\IO\FileFormatException.cs (1)
138_sourceUri = new Uri(sourceUriString, UriKind.RelativeOrAbsolute);
Base\System\IO\Packaging\PackageDigitalSignatureManager.cs (3)
573CertificatePart.PartNamePrefix + exSigner.SerialNumber + CertificatePart.PartNameExtension, UriKind.Relative)); 1267Guid.NewGuid().ToString(_guidStorageFormatString, (IFormatProvider)null) + _defaultSignaturePartNameExtension, UriKind.Relative)); 1403private static Uri _defaultOriginPartName = PackUriHelper.CreatePartUri(new Uri("/package/services/digital-signature/origin.psdsor", UriKind.Relative));
Base\System\IO\Packaging\PackageRelationship.cs (1)
276private static readonly Uri _containerRelationshipPartName = PackUriHelper.CreatePartUri(new Uri("/_rels/.rels", UriKind.Relative));
Base\System\IO\Packaging\PackUriHelper.cs (6)
284return new Uri(resolvedUri.AbsolutePath, UriKind.Relative); 927safeUnescapedUri = new Uri(partUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped), UriKind.Relative); 933UriComponents.KeepDelimiter, UriFormat.SafeUnescaped), UriKind.Relative); 994return ValidatePartUri(new Uri(partName, UriKind.Relative)); 1011private static readonly Uri _packageRootUri = new Uri("/", UriKind.Relative); 1189: base(partUriString, UriKind.Relative)
Base\System\IO\Packaging\ZipPackage.cs (4)
274Uri partUri = new Uri(GetOpcNameFromZipItemName(zipInfo.Name), UriKind.Relative); 304Uri partUri = new Uri(GetOpcNameFromZipItemName(zipInfo.Name), UriKind.Relative); 1343new Uri(TemporaryPartNameWithoutExtension + extensionAttributeValue, UriKind.Relative)); 1371PackUriHelper.ValidatedPartUri partUri = PackUriHelper.ValidatePartUri(new Uri(partNameAttributeValue, UriKind.Relative));