Skip to content

Commit 87ac518

Browse files
CopilotMihaZupan
andauthored
Document Uri.Query and Uri.Fragment include leading delimiters (#12002)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: MihaZupan <25307628+MihaZupan@users.noreply.github.com>
1 parent 8e994a2 commit 87ac518

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

xml/System/Uri.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2108,6 +2108,9 @@ If you used an escaped string to construct this instance (for example, `"http://
21082108
21092109
The <xref:System.Uri.Fragment%2A> property is not considered in any <xref:System.Uri.Equals%2A> comparison.
21102110
2111+
> [!NOTE]
2112+
> The property includes the leading delimiter (`#`), whereas the URI specification (RFC 3986) recognizes the fragment as the portion of a URI without the delimiter.
2113+
21112114
## Examples
21122115
The following example creates a <xref:System.Uri> instance and writes the fragment information to the console.
21132116
@@ -4218,6 +4221,9 @@ The following examples show a URI and the results of calling <xref:System.Uri.Ge
42184221
42194222
For more information on IRI support, see the Remarks section for the <xref:System.Uri> class.
42204223
4224+
> [!NOTE]
4225+
> The property includes the leading delimiter (`?`), whereas the URI specification (RFC 3986) recognizes the query as the portion of a URI without the delimiter.
4226+
42214227
## Examples
42224228
The following example writes the query `?date=today` to the console.
42234229

0 commit comments

Comments
 (0)