180 references to UriFormat
PresentationBuildTasks (4)
Framework\System\Windows\Markup\ParserContext.cs (2)
482string serializedSafe = parserContext.BaseUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped); 484string cannonicalString = sameUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
Shared\MS\Internal\ResourceIDHelper.cs (2)
61string basePath = baseUri.GetComponents(UriComponents.Path, UriFormat.UriEscaped); 62string sourcePath = sourceUri.GetComponents(UriComponents.Path, UriFormat.UriEscaped);
PresentationCore (18)
Core\CSharp\MS\Internal\FontCache\FontCacheUtil.cs (5)
446_windowsFontsUriString = _windowsFontsUriObject.GetComponents(UriComponents.AbsoluteUri, UriFormat.SafeUnescaped); 656string fragment = fontUri.GetComponents(UriComponents.Fragment, UriFormat.SafeUnescaped); 670fontSourceUri = new Uri(fontUri.GetComponents(Util.UriWithoutFragment, UriFormat.SafeUnescaped)); 687string canonicalPathUri = new Uri(fontUri).GetComponents(UriComponents.AbsoluteUri, UriFormat.SafeUnescaped); 755string unescapedPath = uri.GetComponents(UriComponents.Path, UriFormat.Unescaped);
Core\CSharp\MS\Internal\FontCache\FontResourceCache.cs (1)
104string path = uri.GetComponents(UriComponents.Path, UriFormat.SafeUnescaped);
Core\CSharp\MS\Internal\FontCache\FontSource.cs (1)
120return _fontUri.GetComponents(UriComponents.AbsoluteUri, UriFormat.SafeUnescaped);
Core\CSharp\MS\Internal\IO\Packaging\DeobfuscatingStream.cs (1)
220streamUri.GetComponents(UriComponents.Path | UriComponents.KeepDelimiter, UriFormat.UriEscaped));
Core\CSharp\System\Windows\Media\Color.cs (2)
308Uri safeUnescapedUri = new Uri(context.ProfileUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped), 311String uriString = safeUnescapedUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
Core\CSharp\System\Windows\Media\Fonts.cs (1)
114location = fontLocation.GetComponents(UriComponents.AbsoluteUri, UriFormat.SafeUnescaped);
Core\CSharp\System\Windows\Navigation\BaseUriHelper.cs (5)
182PackUriHelper.GetPackageUri(uri).GetComponents(UriComponents.AbsoluteUri, UriFormat.UriEscaped), 218Debug.Assert(String.Compare(partName, uri.GetComponents(UriComponents.Path, UriFormat.UriEscaped), StringComparison.OrdinalIgnoreCase) == 0); 390if (Uri.Compare(sUri, SiteOfOriginBaseUri, UriComponents.Scheme, UriFormat.UriEscaped, StringComparison.OrdinalIgnoreCase) == 0) 396if (String.Compare(packageUri.GetComponents(UriComponents.AbsoluteUri, UriFormat.UriEscaped), _packageSiteOfOriginBaseUriEscaped, StringComparison.OrdinalIgnoreCase) == 0) 398return (new Uri(sUri.GetComponents(UriComponents.SchemeAndServer, UriFormat.UriEscaped))).MakeRelativeUri(sUri);
Shared\MS\Utility\BindUriHelper.cs (2)
70UriFormat.SafeUnescaped), 176referer = sourceUri.GetComponents(UriComponents.AbsoluteUri, UriFormat.UriEscaped);
PresentationFramework (5)
src\Framework\System\Windows\Markup\ParserContext.cs (2)
482string serializedSafe = parserContext.BaseUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped); 484string cannonicalString = sameUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
src\Framework\System\Windows\Markup\XamlParseException.cs (1)
300bamlFilePath = resourceUri.GetComponents(UriComponents.Path, UriFormat.Unescaped);
src\Shared\MS\Utility\BindUriHelper.cs (2)
70UriFormat.SafeUnescaped), 176referer = sourceUri.GetComponents(UriComponents.AbsoluteUri, UriFormat.UriEscaped);
System (104)
net\System\_UriSyntax.cs (1)
412internal string InternalGetComponents(Uri thisUri, UriComponents uriComponents, UriFormat uriFormat)
net\System\Net\_AuthenticationManagerBase.cs (1)
231& ~(UriComponents.Query | UriComponents.Fragment), UriFormat.UriEscaped);
net\System\Net\_AuthenticationState.cs (2)
121string spnKey = httpWebRequest.ChallengedUri.GetParts(UriComponents.Scheme | UriComponents.Host | UriComponents.Port | UriComponents.Path, UriFormat.SafeUnescaped); 169spnKey = httpWebRequest.ChallengedUri.GetParts(UriComponents.SchemeAndServer, UriFormat.SafeUnescaped) + "/";
net\System\Net\_DigestClient.cs (5)
125new string[]{httpWebRequest.ChallengedUri.GetParts(UriComponents.SchemeAndServer, UriFormat.UriEscaped)} 323string rawUri = remoteUri.GetParts(uriParts, UriFormat.UriEscaped); 384new string[]{httpWebRequest.ChallengedUri.GetParts(UriComponents.SchemeAndServer, UriFormat.UriEscaped)} 558this.Uri = httpWebRequest.RequestUri.GetParts(UriComponents.HostAndPort, UriFormat.UriEscaped); 564UriFormat.UriEscaped);
net\System\Net\_FtpControlStream.cs (1)
781path = uri.GetComponents(UriComponents.Path,UriFormat.Unescaped);
net\System\Net\_SpnDictionary.cs (1)
197key = uri.GetParts(UriComponents.Scheme | UriComponents.Host | UriComponents.Port | UriComponents.Path, UriFormat.SafeUnescaped);
net\System\Net\Cache\RequestCacheValidator.cs (1)
207_CacheKey = uri.GetParts(UriComponents.AbsoluteUri, UriFormat.Unescaped);
net\System\Net\DNS.cs (1)
637result = uri.GetComponents(UriComponents.NormalizedHost, UriFormat.SafeUnescaped);
net\System\Net\FtpWebRequest.cs (3)
2049cacheUri = new Uri(cacheUri.GetParts(UriComponents.AbsoluteUri & ~(UriComponents.Fragment|UriComponents.UserInfo), UriFormat.SafeUnescaped)); 2052username = cacheUri.GetParts((UriComponents.Scheme | UriComponents.KeepDelimiter), UriFormat.SafeUnescaped) + username + '@'; 2053username += cacheUri.GetParts((UriComponents.Host | UriComponents.Port | UriComponents.Path | UriComponents.Query), UriFormat.SafeUnescaped);
net\System\Net\HttpWebRequest.cs (7)
4215cacheUri = new Uri(cacheUri.GetParts(UriComponents.AbsoluteUri & ~UriComponents.Fragment, UriFormat.SafeUnescaped)); 4784string scheme = _Uri.GetComponents(UriComponents.Scheme | UriComponents.KeepDelimiter, UriFormat.UriEscaped); 4786string path = _Uri.GetComponents(UriComponents.Path | UriComponents.Query, UriFormat.UriEscaped); 4809string scheme = _Uri.GetComponents(UriComponents.Scheme | UriComponents.KeepDelimiter, UriFormat.UriEscaped); 4810string userInfo = _Uri.GetComponents(UriComponents.UserInfo | UriComponents.KeepDelimiter, UriFormat.UriEscaped); 4812string path = _Uri.GetComponents(UriComponents.Path | UriComponents.Query, UriFormat.UriEscaped); 5785UriFormat.Unescaped, StringComparison.OrdinalIgnoreCase) != 0;
net\System\Net\WebPermission.cs (9)
275m_connectList[i] is Uri? (object)((Uri)m_connectList[i]).GetComponents(UriComponents.HttpRequestUrl, UriFormat.UriEscaped) : 298m_acceptList[i] is Uri? (object)((Uri)m_acceptList[i]).GetComponents(UriComponents.HttpRequestUrl, UriFormat.UriEscaped) : 635if (String.Compare(regexToCheck, Regex.Escape(uri.GetComponents(UriComponents.HttpRequestUrl, UriFormat.UriEscaped)), StringComparison.OrdinalIgnoreCase ) == 0) 922tempStr=Regex.Escape(uri.GetComponents(UriComponents.HttpRequestUrl, UriFormat.UriEscaped)); 954tempStr=Regex.Escape(uri.GetComponents(UriComponents.HttpRequestUrl, UriFormat.UriEscaped)); 999string s = stringUri != null? stringUri: ((Uri)uriToCheck).GetComponents(UriComponents.HttpRequestUrl, UriFormat.UriEscaped); 1012s = ((Uri)uriToCheck).GetComponents(UriComponents.HttpRequestUrl, UriFormat.SafeUnescaped); 1133string uriString = isUri? ((Uri)R).GetComponents(UriComponents.HttpRequestUrl, UriFormat.UriEscaped): R.ToString(); 1145string uriString = isUri? ((Uri)L).GetComponents(UriComponents.HttpRequestUrl, UriFormat.UriEscaped): L.ToString();
net\System\Net\WebRequest.cs (1)
388UriFormat.UriEscaped)
net\System\URI.cs (50)
604result = CombineUri(baseUri, relativeStr, dontEscape? UriFormat.UriEscaped: UriFormat.SafeUnescaped); 689serializationInfo.AddValue("AbsoluteUri", GetParts(UriComponents.SerializationInfoString, UriFormat.UriEscaped)); 693serializationInfo.AddValue("RelativeUri", GetParts(UriComponents.SerializationInfoString, UriFormat.UriEscaped)); 728result = GetParts(UriComponents.Path | UriComponents.KeepDelimiter, UriFormat.UriEscaped); 750result = GetParts(UriComponents.AbsoluteUri, UriFormat.UriEscaped); 787return GetParts(UriComponents.Host | UriComponents.Port, UriFormat.UriEscaped); 874string result = GetParts(UriComponents.PathAndQuery, UriFormat.UriEscaped); 942return GetParts(UriComponents.Host, UriFormat.UriEscaped); 1135return GetUnescapedParts(UriComponents.Path | UriComponents.KeepDelimiter, UriFormat.Unescaped); 1179result = GetParts(UriComponents.Query | UriComponents.KeepDelimiter, UriFormat.UriEscaped); 1201result = GetParts(UriComponents.Fragment | UriComponents.KeepDelimiter, UriFormat.UriEscaped); 1337return GetParts(UriComponents.UserInfo, UriFormat.UriEscaped); 1427return GetParts(UriComponents.Scheme | UriComponents.KeepDelimiter, UriFormat.UriEscaped); 1445return GetParts(NonPathPart, UriFormat.UriEscaped); 1448return GetParts(NonPathPart | UriComponents.Path, UriFormat.UriEscaped); 1451return GetParts(NonPathPart | UriComponents.Path | UriComponents.Query, UriFormat.UriEscaped); 1643chkString = GetParts(UriComponents.HttpRequestUrl, UriFormat.SafeUnescaped); 1658private const UriFormat V1ToStringUnescape = (UriFormat)0x7FFF; 1677m_Info.String = GetParts(UriComponents.AbsoluteUri, UriFormat.SafeUnescaped); 1871me = GetParts(UriComponents.HttpRequestUrl, UriFormat.SafeUnescaped); 1876she = obj.GetParts(UriComponents.HttpRequestUrl, UriFormat.SafeUnescaped); 1934relativeUriString += uri.GetParts(UriComponents.Query | UriComponents.Fragment, UriFormat.UriEscaped); 2624string host = m_Syntax.InternalGetComponents(this, UriComponents.Host, UriFormat.UriEscaped); 2667string portStr = m_Syntax.InternalGetComponents(this, UriComponents.StrongPort, UriFormat.UriEscaped); 2701internal string GetParts(UriComponents uriParts, UriFormat formatAs) 2736return ReCreateParts(uriParts, nonCanonical, UriFormat.UriEscaped); 2739private string GetUnescapedParts(UriComponents uriParts, UriFormat formatAs) { 2770private string ReCreateParts(UriComponents parts, ushort nonCanonical, UriFormat formatAs) 2780int count = (m_Info.Offset.End-m_Info.Offset.User) * (formatAs == UriFormat.UriEscaped?12:1); 2802case UriFormat.UriEscaped: 2818case UriFormat.SafeUnescaped: 2825case UriFormat.Unescaped: 2853if (formatAs != UriFormat.UriEscaped && HostType == Flags.BasicHostType 2856mode = formatAs == UriFormat.Unescaped 2961case UriFormat.UriEscaped: 2985case UriFormat.Unescaped: 3017case UriFormat.UriEscaped: 3039case UriFormat.Unescaped: 4573private unsafe char[] GetCanonicalPath(char[] dest, ref int pos, UriFormat formatAs) 4589if (formatAs == UriFormat.UriEscaped) 4671if (formatAs == UriFormat.UriEscaped && NotAny(Flags.UserEscaped) && InFact(Flags.E_PathNotCanonical)) { 4685if (formatAs != UriFormat.UriEscaped && InFact(Flags.PathNotCanonical)) 4700case UriFormat.Unescaped: 4996private static string CombineUri(Uri basePart, string relativePart, UriFormat uriFormat) { 5037UriFormat.Unescaped); 5046+ basePart.GetParts(UriComponents.Host, UriFormat.Unescaped) 5098basePart.IsImplicitFile ? UriFormat.Unescaped : uriFormat); 5164left = @"\\" + basePart.GetParts(UriComponents.Host, UriFormat.Unescaped);
net\System\UriExt.cs (18)
397public string GetComponents(UriComponents components, UriFormat format) 402if ((format & ~UriFormat.SafeUnescaped) != 0) 424public static int Compare(Uri uri1, Uri uri2, UriComponents partsToCompare, UriFormat compareFormat, 769baseUri.UserEscaped ? UriFormat.UriEscaped : UriFormat.SafeUnescaped); 777UriFormat.UriEscaped) + relativeStr; 785UriFormat.UriEscaped) + relativeStr; 832private unsafe string GetRelativeSerializationString(UriFormat format) 834if (format == UriFormat.UriEscaped) 846else if (format == UriFormat.Unescaped) 849else if (format == UriFormat.SafeUnescaped) 868internal string GetComponentsHelper(UriComponents uriComponents, UriFormat uriFormat) 909if (uriComponents == UriComponents.Host && (uriFormat == UriFormat.UriEscaped 918case UriFormat.UriEscaped: 922case UriFormat.SafeUnescaped: 923case UriFormat.Unescaped: 976string me = GetParts(UriComponents.AbsoluteUri & ~UriComponents.Fragment, UriFormat.SafeUnescaped); 977string she = uriLink.GetParts(UriComponents.AbsoluteUri & ~UriComponents.Fragment, UriFormat.SafeUnescaped);
net\System\UriScheme.cs (2)
136protected virtual string GetComponents(Uri uri, UriComponents components, UriFormat format) 141if ((format & ~UriFormat.SafeUnescaped) != 0)
security\system\security\Authentication\ExtendedProtection\ServiceNameCollection.cs (1)
179UriComponents.NormalizedHost, UriFormat.SafeUnescaped);
System.Data.Services (2)
parent\Client\System\Data\Services\Client\XmlUtil.cs (1)
65string unescaped = uri.GetComponents(UriComponents.AbsoluteUri, UriFormat.SafeUnescaped);
System\Data\Services\RequestUriProcessor.cs (1)
275return uri.GetComponents(UriComponents.HttpRequestUrl, UriFormat.UriEscaped);
System.Data.Services.Client (2)
System\Data\Services\Client\DataServiceContext.cs (1)
3561.GetComponents(UriComponents.Query | UriComponents.Fragment, UriFormat.SafeUnescaped)))
System\Data\Services\Client\XmlUtil.cs (1)
65string unescaped = uri.GetComponents(UriComponents.AbsoluteUri, UriFormat.SafeUnescaped);
System.Runtime.Serialization (2)
System\Runtime\Serialization\ExtensionDataReader.cs (1)
728this.value = uri.GetComponents(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
System\Runtime\Serialization\XmlWriterDelegator.cs (1)
651writer.WriteString(value.GetComponents(UriComponents.SerializationInfoString, UriFormat.UriEscaped));
System.ServiceModel (14)
System\ServiceModel\Channels\BaseUriWithWildcard.cs (3)
257string s1 = baseAddress.GetComponents(UriComponents.Path | UriComponents.KeepDelimiter, UriFormat.Unescaped); 258string s2 = fullAddress.GetComponents(UriComponents.Path | UriComponents.KeepDelimiter, UriFormat.Unescaped); 316this.comparand.Address = this.baseAddress.GetComponents(UriComponents.Path | UriComponents.KeepDelimiter, UriFormat.UriEscaped);
System\ServiceModel\Channels\HttpChannelHelpers.cs (1)
3401result = uri.GetComponents(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
System\ServiceModel\Channels\PeerMessageDispatcher.cs (2)
174UriFormat.SafeUnescaped, StringComparison.OrdinalIgnoreCase) != 0) 182UriFormat.SafeUnescaped, StringComparison.OrdinalIgnoreCase) == 0;
System\ServiceModel\Channels\PeerNodeImplementation.cs (1)
689UriFormat.SafeUnescaped, StringComparison.OrdinalIgnoreCase) == 0);
System\ServiceModel\Channels\SharedHttpTransportManager.cs (1)
539string path = ListenUri.GetComponents(UriComponents.Path, UriFormat.Unescaped);
System\ServiceModel\Channels\UriHelper.cs (2)
11return uri.GetComponents(UriComponents.NormalizedHost, UriFormat.UriEscaped); 16return uri.GetComponents(UriComponents.AbsoluteUri | UriComponents.NormalizedHost, UriFormat.UriEscaped);
System\ServiceModel\EndpointAddress.cs (3)
385string u1Path = u1.GetComponents(UriComponents.Path, UriFormat.Unescaped); 386string u2Path = u2.GetComponents(UriComponents.Path, UriFormat.Unescaped); 416string uriString = uri.GetComponents(components, UriFormat.Unescaped);
System\UriTemplateHelpers.cs (1)
137return uri.GetComponents(UriComponents.Path | UriComponents.KeepDelimiter, UriFormat.Unescaped);
System.ServiceModel.Discovery (9)
System\ServiceModel\Discovery\DiscoveryMessageSequence.cs (1)
192this.SequenceId.GetComponents(UriComponents.SerializationInfoString, UriFormat.UriEscaped));
System\ServiceModel\Discovery\ScopeCompiler.cs (5)
170string scheme = scope.GetComponents(UriComponents.Scheme, UriFormat.UriEscaped); 186string authority = scope.GetComponents(UriComponents.StrongAuthority, UriFormat.UriEscaped); 242guidString = scope.GetComponents(UriComponents.Path, UriFormat.UriEscaped); 295string hostport = scope.GetComponents(UriComponents.HostAndPort, UriFormat.UriEscaped); 315string dn = scope.GetComponents(UriComponents.Path, UriFormat.Unescaped);
System\ServiceModel\Discovery\SerializationUtility.cs (3)
194writer.WriteString(uris[i].GetComponents(UriComponents.SerializationInfoString, UriFormat.UriEscaped)); 198writer.WriteString(uris[uris.Count - 1].GetComponents(UriComponents.SerializationInfoString, UriFormat.UriEscaped)); 449versionDependentScopeMatchBy.GetComponents(UriComponents.SerializationInfoString, UriFormat.UriEscaped));
System.Web.Extensions (1)
Script\Serialization\JavaScriptSerializer.cs (1)
204sb.Append("\"").Append(uri.GetComponents(UriComponents.SerializationInfoString, UriFormat.UriEscaped)).Append("\"");
System.Web.Services (2)
System\Web\Services\Discovery\DiscoveryReference.cs (1)
173return (new Uri(new Uri(baseUrl), relUrl)).GetComponents(UriComponents.AbsoluteUri, UriFormat.SafeUnescaped);
System\Web\Services\Protocols\RuntimeUtils.cs (1)
95return uri.GetComponents(UriComponents.SerializationInfoString, UriFormat.UriEscaped).Replace("#", "%23");
WindowsBase (17)
Base\System\IO\FileFormatException.cs (1)
164: sourceUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped),
Base\System\IO\Packaging\Package.cs (1)
445if (Uri.Compare(owningPartUri, PackUriHelper.PackageRootUri, UriComponents.SerializationInfoString, UriFormat.UriEscaped, StringComparison.Ordinal)==0)
Base\System\IO\Packaging\PackageDigitalSignatureManager.cs (1)
1164UriFormat.UriEscaped,
Base\System\IO\Packaging\PackageRelationshipSelector.cs (1)
59if(Uri.Compare(sourceUri,PackUriHelper.PackageRootUri, UriComponents.SerializationInfoString, UriFormat.UriEscaped, StringComparison.Ordinal) != 0)
Base\System\IO\Packaging\PackUriHelper.cs (11)
121string absolutePackageUri = packageUri.GetComponents(UriComponents.AbsoluteUri, UriFormat.UriEscaped); 149packUri = new Uri(String.Concat(packUri.GetComponents(UriComponents.AbsoluteUri, UriFormat.UriEscaped), fragment)); 155return new Uri(packUri.GetComponents(UriComponents.AbsoluteUri, UriFormat.UriEscaped)); 231string serializedPartUri = partUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped); 442if (Uri.Compare(partUri, PackageRootUri, UriComponents.SerializationInfoString, UriFormat.UriEscaped, StringComparison.Ordinal) == 0) 810UriComponents.KeepDelimiter, UriFormat.UriEscaped); 910UriFormat.UriEscaped, 927safeUnescapedUri = new Uri(partUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped), UriKind.Relative); 933UriComponents.KeepDelimiter, UriFormat.SafeUnescaped), UriKind.Relative); 938String partName = safeUnescapedUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.UriEscaped); 970String hostAndPort = packUri.GetComponents(UriComponents.HostAndPort, UriFormat.UriEscaped);
Shared\MS\Internal\ResourceIDHelper.cs (2)
61string basePath = baseUri.GetComponents(UriComponents.Path, UriFormat.UriEscaped); 62string sourcePath = sourceUri.GetComponents(UriComponents.Path, UriFormat.UriEscaped);