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