38 references to GetParts
System.Private.Uri (38)
System\Uri.cs (31)
540serializationInfo.AddValue("AbsoluteUri", GetParts(UriComponents.SerializationInfoString, UriFormat.UriEscaped)); // Do not rename (binary serialization) 544serializationInfo.AddValue("RelativeUri", GetParts(UriComponents.SerializationInfoString, UriFormat.UriEscaped)); // Do not rename (binary serialization) 764return info.Path ??= GetParts(UriComponents.Path | UriComponents.KeepDelimiter, UriFormat.UriEscaped); 778return info.AbsoluteUri ??= GetParts(UriComponents.AbsoluteUri, UriFormat.UriEscaped); 816return GetParts(UriComponents.Host | UriComponents.Port, UriFormat.UriEscaped); 917string result = GetParts(UriComponents.PathAndQuery, UriFormat.UriEscaped); 998return GetParts(UriComponents.Host, UriFormat.UriEscaped); 1143return info.Query ??= GetParts(UriComponents.Query | UriComponents.KeepDelimiter, UriFormat.UriEscaped); 1159return info.Fragment ??= GetParts(UriComponents.Fragment | UriComponents.KeepDelimiter, UriFormat.UriEscaped); 1298return GetParts(UriComponents.UserInfo, UriFormat.UriEscaped); 1396return GetParts(UriComponents.Scheme | UriComponents.KeepDelimiter, UriFormat.UriEscaped); 1414return GetParts(NonPathPart, UriFormat.UriEscaped); 1417return GetParts(NonPathPart | UriComponents.Path, UriFormat.UriEscaped); 1420return GetParts(NonPathPart | UriComponents.Path | UriComponents.Query, UriFormat.UriEscaped); 1585string remoteUrl = info.RemoteUrl ??= GetParts(components, UriFormat.SafeUnescaped); 1614GetParts(UriComponents.AbsoluteUri, UriFormat.SafeUnescaped); 1884string selfUrl = selfInfo.RemoteUrl ??= GetParts(components, UriFormat.SafeUnescaped); 1885string otherUrl = otherInfo.RemoteUrl ??= other.GetParts(components, UriFormat.SafeUnescaped); 1913relativeUriString += uri.GetParts(UriComponents.Query | UriComponents.Fragment, UriFormat.UriEscaped); 4652ReadOnlySpan<char> share = basePart.GetParts(UriComponents.Path | UriComponents.KeepDelimiter, UriFormat.Unescaped); 4661return string.Concat(@"\\", basePart.GetParts(UriComponents.Host, UriFormat.Unescaped), share, relativePart); 4664return string.Concat("file://", basePart.GetParts(UriComponents.Host, uriFormat), share, relativePart); 4692left = $"{basePart.GetParts(UriComponents.Scheme | UriComponents.UserInfo, uriFormat)}[{basePart.DnsSafeHost}]{basePart.GetParts(UriComponents.KeepDelimiter | UriComponents.Port, uriFormat)}"; 4696left = basePart.GetParts(UriComponents.SchemeAndServer | UriComponents.UserInfo, uriFormat); 4708left = basePart.GetParts(UriComponents.Path | UriComponents.KeepDelimiter, 4772left = basePart.GetParts(UriComponents.Scheme | UriComponents.UserInfo, uriFormat) 4774+ basePart.GetParts(UriComponents.KeepDelimiter | UriComponents.Port, uriFormat); 4789left = basePart.GetParts(UriComponents.Host, UriFormat.Unescaped); 4793left = @"\\" + basePart.GetParts(UriComponents.Host, UriFormat.Unescaped); 4798left = basePart.GetParts(UriComponents.SchemeAndServer | UriComponents.UserInfo, uriFormat);
System\UriExt.cs (7)
403uri1.GetParts(partsToCompare, compareFormat), 404uri2.GetParts(partsToCompare, compareFormat), 834newUriString = baseUri.GetParts(UriComponents.AbsoluteUri, 842newUriString = baseUri.GetParts(UriComponents.AbsoluteUri & ~UriComponents.Fragment, 850newUriString = baseUri.GetParts(UriComponents.AbsoluteUri & ~UriComponents.Query & ~UriComponents.Fragment, 1028string self = GetParts(ComponentsToCompare, UriFormat.SafeUnescaped); 1029string other = uriLink.GetParts(ComponentsToCompare, UriFormat.SafeUnescaped);