91 references to GetComponents
Aspire.Dashboard (1)
Components\Dialogs\SettingsDialog.razor.cs (1)
70.GetComponents(UriComponents.PathAndQuery, UriFormat.Unescaped);
dotnet-svcutil-lib (5)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlWriterDelegator.cs (1)
633writer.WriteString(value.GetComponents(UriComponents.SerializationInfoString, UriFormat.UriEscaped));
FrameworkFork\System.ServiceModel\System\ServiceModel\EndpointAddress.cs (3)
383string u1Path = u1.GetComponents(UriComponents.Path, UriFormat.Unescaped); 384string u2Path = u2.GetComponents(UriComponents.Path, UriFormat.Unescaped); 414string uriString = uri.GetComponents(components, UriFormat.Unescaped);
Metadata\MetadataFileNameManager.cs (1)
230return (new Uri(baseUri, relUrl)).GetComponents(UriComponents.AbsoluteUri, UriFormat.SafeUnescaped);
Microsoft.AspNetCore.Authentication.Test (12)
FacebookTests.cs (4)
333if (req.RequestUri.GetComponents(UriComponents.SchemeAndServer | UriComponents.Path, UriFormat.UriEscaped) == FacebookDefaults.TokenEndpoint) 340if (req.RequestUri.GetComponents(UriComponents.SchemeAndServer | UriComponents.Path, UriFormat.UriEscaped) == 341new Uri(customUserInfoEndpoint).GetComponents(UriComponents.SchemeAndServer | UriComponents.Path, UriFormat.UriEscaped)) 410else if (req.RequestUri.GetComponents(UriComponents.SchemeAndServer | UriComponents.Path, UriFormat.UriEscaped) == "https://graph.facebook.com/v14.0/me")
GoogleTests.cs (2)
1049else if (req.RequestUri.GetComponents(UriComponents.SchemeAndServer | UriComponents.Path, UriFormat.UriEscaped) == "https://www.googleapis.com/oauth2/v3/userinfo") 1104else if (req.RequestUri.GetComponents(UriComponents.SchemeAndServer | UriComponents.Path, UriFormat.UriEscaped) == "https://www.googleapis.com/oauth2/v3/userinfo")
MicrosoftAccountTests.cs (2)
208else if (req.RequestUri.GetComponents(UriComponents.SchemeAndServer | UriComponents.Path, UriFormat.UriEscaped) == "https://graph.microsoft.com/v1.0/me") 316else if (req.RequestUri.GetComponents(UriComponents.SchemeAndServer | UriComponents.Path, UriFormat.UriEscaped) == "https://graph.microsoft.com/v1.0/me")
TwitterTests.cs (4)
397if (req.RequestUri.GetComponents(UriComponents.SchemeAndServer | UriComponents.Path, UriFormat.UriEscaped) == "https://api.twitter.com/oauth/access_token") 466if (req.RequestUri.GetComponents(UriComponents.SchemeAndServer | UriComponents.Path, UriFormat.UriEscaped) == "https://api.twitter.com/oauth/access_token") 479if (req.RequestUri.GetComponents(UriComponents.SchemeAndServer | UriComponents.Path, UriFormat.UriEscaped) == 480new Uri(verifyCredentialsEndpoint).GetComponents(UriComponents.SchemeAndServer | UriComponents.Path, UriFormat.UriEscaped))
Microsoft.AspNetCore.Cors (1)
Infrastructure\CorsPolicyBuilder.cs (1)
86return builder.Uri.GetComponents(UriComponents.SchemeAndServer, UriFormat.Unescaped);
Microsoft.AspNetCore.Http.Abstractions (4)
FragmentString.cs (1)
98string fragmentValue = uri.GetComponents(UriComponents.Fragment, UriFormat.UriEscaped);
HostString.cs (1)
205return new HostString(uri.GetComponents(
PathString.cs (1)
202var uriComponent = uri.GetComponents(UriComponents.Path, UriFormat.UriEscaped);
QueryString.cs (1)
95string queryValue = uri.GetComponents(UriComponents.Query, UriFormat.UriEscaped);
Microsoft.AspNetCore.Http.Extensions (1)
UriHelper.cs (1)
173return uri.GetComponents(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
Microsoft.AspNetCore.Http.Results (4)
Accepted.cs (1)
42Location = locationUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
AcceptedOfT.cs (1)
51Location = locationUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
Created.cs (1)
43Location = locationUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
CreatedOfT.cs (1)
51Location = locationUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
Microsoft.AspNetCore.Mvc.Core (2)
AcceptedResult.cs (1)
57Location = locationUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
CreatedResult.cs (1)
62Location = location.GetComponents(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
PresentationBuildTasks (4)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\ParserContext.cs (2)
462string serializedSafe = parserContext.BaseUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped); 464string cannonicalString = sameUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\ResourceIDHelper.cs (2)
62string basePath = baseUri.GetComponents(UriComponents.Path, UriFormat.UriEscaped); 63string sourcePath = sourceUri.GetComponents(UriComponents.Path, UriFormat.UriEscaped);
PresentationCore (17)
MS\Internal\FontCache\FontCacheUtil.cs (5)
314_windowsFontsUriString = _windowsFontsUriObject.GetComponents(UriComponents.AbsoluteUri, UriFormat.SafeUnescaped); 489string fragment = fontUri.GetComponents(UriComponents.Fragment, UriFormat.SafeUnescaped); 503fontSourceUri = new Uri(fontUri.GetComponents(Util.UriWithoutFragment, UriFormat.SafeUnescaped)); 520string canonicalPathUri = new Uri(fontUri).GetComponents(UriComponents.AbsoluteUri, UriFormat.SafeUnescaped); 588string unescapedPath = uri.GetComponents(UriComponents.Path, UriFormat.Unescaped);
MS\Internal\FontCache\FontResourceCache.cs (1)
100string path = uri.GetComponents(UriComponents.Path, UriFormat.SafeUnescaped);
MS\Internal\FontCache\FontSource.cs (1)
106return _fontUri.GetComponents(UriComponents.AbsoluteUri, UriFormat.SafeUnescaped);
MS\Internal\IO\Packaging\DeobfuscatingStream.cs (1)
212streamUri.GetComponents(UriComponents.Path | UriComponents.KeepDelimiter, UriFormat.UriEscaped));
src\Microsoft.DotNet.Wpf\src\Shared\MS\Utility\BindUriHelper.cs (2)
59uri.GetComponents( 163referer = sourceUri.GetComponents(UriComponents.AbsoluteUri, UriFormat.UriEscaped);
System\Windows\Media\Color.cs (2)
292Uri safeUnescapedUri = new Uri(context.ProfileUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped), 295String uriString = safeUnescapedUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
System\Windows\Media\Fonts.cs (1)
97location = fontLocation.GetComponents(UriComponents.AbsoluteUri, UriFormat.SafeUnescaped);
System\Windows\Navigation\BaseUriHelper.cs (4)
152string.Equals(PackUriHelper.GetPackageUri(uri).GetComponents(UriComponents.AbsoluteUri, UriFormat.UriEscaped), 188Debug.Assert(string.Equals(partName, uri.GetComponents(UriComponents.Path, UriFormat.UriEscaped), StringComparison.OrdinalIgnoreCase)); 358if (string.Equals(packageUri.GetComponents(UriComponents.AbsoluteUri, UriFormat.UriEscaped), _packageSiteOfOriginBaseUriEscaped, StringComparison.OrdinalIgnoreCase)) 360return (new Uri(sUri.GetComponents(UriComponents.SchemeAndServer, UriFormat.UriEscaped))).MakeRelativeUri(sUri);
PresentationFramework (5)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Utility\BindUriHelper.cs (2)
59uri.GetComponents( 163referer = sourceUri.GetComponents(UriComponents.AbsoluteUri, UriFormat.UriEscaped);
System\Windows\Markup\ParserContext.cs (2)
462string serializedSafe = parserContext.BaseUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped); 464string cannonicalString = sameUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
System\Windows\Markup\XamlParseException.cs (1)
280bamlFilePath = resourceUri.GetComponents(UriComponents.Path, UriFormat.Unescaped);
PresentationUI (2)
MS\Internal\Documents\Application\AddressUtility.cs (2)
50mailtoUri.GetComponents(UriComponents.UserInfo, UriFormat.Unescaped), 51mailtoUri.GetComponents(UriComponents.Host, UriFormat.Unescaped));
ReachFramework (14)
Packaging\XpsManager.cs (2)
1522Uri unescapedUri = new Uri(relativeUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped), UriKind.RelativeOrAbsolute); 1524return unescapedUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
Packaging\XPSSignatureDefinition.cs (2)
361Uri pageUri = new Uri(SpotLocation.PageUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped), UriKind.RelativeOrAbsolute); 362string pageUriAsString = pageUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
Serialization\ColorTypeConverter.cs (2)
355Uri safeUnescapedUri = new Uri(profileUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped), 358String uriString = safeUnescapedUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
Serialization\VisualSerializer.cs (1)
1653return uri.GetComponents(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped);
Serialization\XpsFontSubsetter.cs (6)
455Uri fontUri = new Uri(_fontUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped), UriKind.RelativeOrAbsolute); 456string fontUriAsString = fontUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.UriEscaped); 601Uri fontUri = new Uri(_fontUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped), UriKind.RelativeOrAbsolute); 602string fontUriAsString = fontUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.UriEscaped); 637Uri fontUri = new Uri(_fontUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped), UriKind.RelativeOrAbsolute); 638string fontUriAsString = fontUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Utility\BindUriHelper.cs (1)
59uri.GetComponents(
System.IO.Packaging (10)
System\IO\Packaging\FileFormatException.cs (1)
139info.AddValue("SourceUri", SourceUri?.GetComponents(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped), typeof(string));
System\IO\Packaging\PackUriHelper.cs (5)
45string serializedPartUri = partUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped); 436new Uri(s_defaultUri, partName).GetComponents(UriComponents.Path | 562safeUnescapedUri = new Uri(partUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped), UriKind.Relative); 567new Uri(partUri.GetComponents(UriComponents.Path | 573string partName = safeUnescapedUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
System\IO\Packaging\PackUriHelper.PackUriScheme.cs (4)
88string absolutePackageUri = packageUri.GetComponents(UriComponents.AbsoluteUri, UriFormat.UriEscaped); 112packUri = new Uri(string.Concat(packUri.GetComponents(UriComponents.AbsoluteUri, UriFormat.UriEscaped), fragment)); 118return new Uri(packUri.GetComponents(UriComponents.AbsoluteUri, UriFormat.UriEscaped)); 307string hostAndPort = packUri.GetComponents(UriComponents.HostAndPort, UriFormat.UriEscaped);
System.Net.Http (1)
System\Net\Http\Headers\UriHeaderParser.cs (1)
99return uri.GetComponents(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
System.Net.HttpListener (1)
System\Net\ServiceNameStore.cs (1)
107string normalizedHost = constructedUri.GetComponents(
System.Net.Requests (2)
System\Net\FtpControlStream.cs (1)
778path = uri.GetComponents(UriComponents.Path, UriFormat.Unescaped);
System\Net\WebRequest.cs (1)
259&& tempUri.GetComponents(UriComponents.PathAndQuery | UriComponents.Fragment, UriFormat.UriEscaped)
System.Net.Security (1)
System\Security\Authentication\ExtendedProtection\ServiceNameCollection.cs (1)
250string normalizedHost = constructedUri.GetComponents(
System.Private.DataContractSerialization (2)
System\Runtime\Serialization\ExtensionDataReader.cs (1)
727_value = uri.GetComponents(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
System\Runtime\Serialization\XmlWriterDelegator.cs (1)
644writer.WriteString(value?.GetComponents(UriComponents.SerializationInfoString, UriFormat.UriEscaped));
System.Private.Uri (1)
System\UriCreationOptions.cs (1)
17/// <see cref="Uri.GetComponents(UriComponents, UriFormat)"/> may not be used for <see cref="UriComponents.Path"/> or <see cref="UriComponents.Query"/>.
System.Private.Xml (1)
System\Xml\Xsl\Runtime\XmlCollation.cs (1)
178string authority = collationUri.GetComponents(UriComponents.Scheme | UriComponents.UserInfo | UriComponents.Host | UriComponents.Port, UriFormat.UriEscaped);