38 references to GetParts
System.Private.Uri (38)
System\Uri.cs (31)
491serializationInfo.AddValue("AbsoluteUri", GetParts(UriComponents.SerializationInfoString, UriFormat.UriEscaped)); // Do not rename (binary serialization) 495serializationInfo.AddValue("RelativeUri", GetParts(UriComponents.SerializationInfoString, UriFormat.UriEscaped)); // Do not rename (binary serialization) 717return info.Path ??= GetParts(UriComponents.Path | UriComponents.KeepDelimiter, UriFormat.UriEscaped); 731return info.AbsoluteUri ??= GetParts(UriComponents.AbsoluteUri, UriFormat.UriEscaped); 769return GetParts(UriComponents.Host | UriComponents.Port, UriFormat.UriEscaped); 870string result = GetParts(UriComponents.PathAndQuery, UriFormat.UriEscaped); 948return GetParts(UriComponents.Host, UriFormat.UriEscaped); 1093return info.Query ??= GetParts(UriComponents.Query | UriComponents.KeepDelimiter, UriFormat.UriEscaped); 1109return info.Fragment ??= GetParts(UriComponents.Fragment | UriComponents.KeepDelimiter, UriFormat.UriEscaped); 1248return GetParts(UriComponents.UserInfo, UriFormat.UriEscaped); 1346return GetParts(UriComponents.Scheme | UriComponents.KeepDelimiter, UriFormat.UriEscaped); 1364return GetParts(NonPathPart, UriFormat.UriEscaped); 1367return GetParts(NonPathPart | UriComponents.Path, UriFormat.UriEscaped); 1370return GetParts(NonPathPart | UriComponents.Path | UriComponents.Query, UriFormat.UriEscaped); 1535string remoteUrl = info.RemoteUrl ??= GetParts(components, UriFormat.SafeUnescaped); 1564GetParts(UriComponents.AbsoluteUri, UriFormat.SafeUnescaped); 1834string selfUrl = selfInfo.RemoteUrl ??= GetParts(components, UriFormat.SafeUnescaped); 1835string otherUrl = otherInfo.RemoteUrl ??= other.GetParts(components, UriFormat.SafeUnescaped); 1863relativeUriString += uri.GetParts(UriComponents.Query | UriComponents.Fragment, UriFormat.UriEscaped); 4733ReadOnlySpan<char> share = basePart.GetParts(UriComponents.Path | UriComponents.KeepDelimiter, UriFormat.Unescaped); 4742return string.Concat(@"\\", basePart.GetParts(UriComponents.Host, UriFormat.Unescaped), share, relativePart); 4745return string.Concat("file://", basePart.GetParts(UriComponents.Host, uriFormat), share, relativePart); 4773left = $"{basePart.GetParts(UriComponents.Scheme | UriComponents.UserInfo, uriFormat)}[{basePart.DnsSafeHost}]{basePart.GetParts(UriComponents.KeepDelimiter | UriComponents.Port, uriFormat)}"; 4777left = basePart.GetParts(UriComponents.SchemeAndServer | UriComponents.UserInfo, uriFormat); 4789left = basePart.GetParts(UriComponents.Path | UriComponents.KeepDelimiter, 4853left = basePart.GetParts(UriComponents.Scheme | UriComponents.UserInfo, uriFormat) 4855+ basePart.GetParts(UriComponents.KeepDelimiter | UriComponents.Port, uriFormat); 4870left = basePart.GetParts(UriComponents.Host, UriFormat.Unescaped); 4874left = @"\\" + basePart.GetParts(UriComponents.Host, UriFormat.Unescaped); 4879left = basePart.GetParts(UriComponents.SchemeAndServer | UriComponents.UserInfo, uriFormat);
System\UriExt.cs (7)
407uri1.GetParts(partsToCompare, compareFormat), 408uri2.GetParts(partsToCompare, compareFormat), 838newUriString = baseUri.GetParts(UriComponents.AbsoluteUri, 846newUriString = baseUri.GetParts(UriComponents.AbsoluteUri & ~UriComponents.Fragment, 854newUriString = baseUri.GetParts(UriComponents.AbsoluteUri & ~UriComponents.Query & ~UriComponents.Fragment, 1032string self = GetParts(ComponentsToCompare, UriFormat.SafeUnescaped); 1033string other = uriLink.GetParts(ComponentsToCompare, UriFormat.SafeUnescaped);