You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: xml/System/Uri.xml
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2442,6 +2442,12 @@ If you used an escaped string to construct this instance (for example, `"http://
2442
2442
2443
2443
The <xref:System.Uri.GetLeftPart%2A> method returns a string containing the leftmost portion of the URI string, ending with the portion specified by `part`.
2444
2444
2445
+
> [!IMPORTANT]
2446
+
> The <xref:System.Uri.GetLeftPart%2A> method performs Unicode character encoding and normalization as part of its processing. It is not a simple string manipulation method. The returned string may differ from the original URI string due to this encoding behavior.
2447
+
2448
+
The <xref:System.Uri.GetLeftPart%2A> method is equivalent to calling <xref:System.Uri.GetComponents%2A> with the appropriate <xref:System.UriComponents> flags. For example:
2449
+
- `GetLeftPart(UriPartial.Authority)` is equivalent to `GetComponents(UriComponents.Scheme | UriComponents.UserInfo | UriComponents.Host | UriComponents.Port, UriFormat.UriEscaped)`
2450
+
2445
2451
<xref:System.Uri.GetLeftPart%2A> includes delimiters in the following cases:
2446
2452
2447
2453
- <xref:System.UriPartial.Scheme> includes the scheme delimiter.
0 commit comments