Skip to content

Commit 3854df0

Browse files
authored
Fix up authority part (dotnet#8204)
1 parent 7c48fbb commit 3854df0

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

xml/System/Uri.xml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2433,27 +2433,25 @@ If you used an escaped string to construct this instance (for example, `"http://
24332433
<format type="text/markdown"><![CDATA[
24342434
24352435
## Remarks
2436-
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`.
24372436
2438-
<xref:System.Uri.GetLeftPart%2A> includes delimiters in the following cases:
2437+
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`.
24392438
2440-
- <xref:System.UriPartial.Scheme> includes the scheme delimiter.
2439+
<xref:System.Uri.GetLeftPart%2A> includes delimiters in the following cases:
24412440
2442-
- <xref:System.UriPartial.Authority> does not include the path delimiter.
2441+
- <xref:System.UriPartial.Scheme> includes the scheme delimiter.
2442+
- <xref:System.UriPartial.Authority> does not include the path delimiter.
2443+
- <xref:System.UriPartial.Path> includes the path delimiter and any delimiters in the original URI up to the query or fragment delimiter.
2444+
- <xref:System.UriPartial.Query> includes the <xref:System.UriPartial.Path>, plus the query and its delimiter.
24432445
2444-
- <xref:System.UriPartial.Path> includes any delimiters in the original URI up to the query or fragment delimiter.
2445-
2446-
- <xref:System.UriPartial.Query> includes the <xref:System.UriPartial.Path>, plus the query and its delimiter.
2447-
2448-
The following examples show a URI and the results of calling <xref:System.Uri.GetLeftPart%2A> with <xref:System.UriPartial.Scheme>, <xref:System.UriPartial.Authority>, <xref:System.UriPartial.Path>, or <xref:System.UriPartial.Query>.
2446+
The following examples show a URI and the results of calling <xref:System.Uri.GetLeftPart%2A> with <xref:System.UriPartial.Scheme>, <xref:System.UriPartial.Authority>, <xref:System.UriPartial.Path>, or <xref:System.UriPartial.Query>.
24492447
24502448
|URI|Scheme|Authority|Path|Query|
24512449
|---------|------------|---------------|----------|-----------|
24522450
|`http://www.contoso.com/index.htm?date=today`|`http://`|`http://www.contoso.com`|`http://www.contoso.com/index.htm`|`http://www.contoso.com/index.htm?date=today`|
24532451
|`http://www.contoso.com/index.htm#main`|`http://`|`http://www.contoso.com`|`http://www.contoso.com/index.htm`|`http://www.contoso.com/index.htm`|
2454-
|`mailto:[email protected]?subject=uri`|`mailto:`|`mailto:[email protected]`|`mailto:[email protected]?subject=uri`|`<none>`|
2452+
|`mailto:[email protected]?subject=uri`|`mailto:`|`<none>`|`mailto:[email protected]`|`mailto:[email protected]?subject=uri`|
24552453
|`nntp://news.contoso.com/[email protected]`|`nntp://`|`nntp://news.contoso.com`|`nntp://news.contoso.com/[email protected]`|`nntp://news.contoso.com/[email protected]`|
2456-
|`news:[email protected]`|`news:`|`news:[email protected]`|`news:[email protected]`|`<none>`|
2454+
|`news:[email protected]`|`news:`|`<none>`|`news:[email protected]`|`news:[email protected]`|
24572455
|`file://server/filename.ext`|`file://`|`file://server`|`file://server/filename.ext`|`file://server/filename.ext`|
24582456
24592457
## Examples

0 commit comments

Comments
 (0)