Skip to content

Commit 5c9a966

Browse files
committed
update length restriction for .net 10
1 parent b314392 commit 5c9a966

File tree

1 file changed

+14
-22
lines changed

1 file changed

+14
-22
lines changed

xml/System/Uri.xml

Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -187,24 +187,28 @@ The following code snippet shows example values of the various properties on the
187187
</Parameter>
188188
</Parameters>
189189
<Docs>
190-
<param name="uriString">A string that identifies the resource to be represented by the <see cref="T:System.Uri" /> instance. Note that an IPv6 address in string form must be enclosed within brackets. For example, "http://[2607:f8b0:400d:c06::69]".</param>
190+
<param name="uriString">A string that identifies the resource to be represented by the <see cref="T:System.Uri" /> instance.</param>
191191
<summary>Initializes a new instance of the <see cref="T:System.Uri" /> class with the specified URI.</summary>
192192
<remarks>
193193
<format type="text/markdown"><![CDATA[
194194
195195
## Remarks
196-
This constructor creates a <xref:System.Uri> instance from a URI string. It parses the URI, puts it in canonical format, and makes any required escape encodings.
197196
198-
This constructor does not ensure that the <xref:System.Uri> refers to an accessible resource.
197+
This constructor creates a <xref:System.Uri> instance from a URI string. It parses the URI, puts it in canonical format, and makes any required escape encodings.
198+
199+
This constructor does not ensure that the <xref:System.Uri> refers to an accessible resource.
200+
201+
If the `uriString` represents an IPv6 address, it must be enclosed within brackets, for example, "http://[2607:f8b0:400d:c06::69]".
199202
200-
This constructor assumes that the `string` parameter references an absolute URI and is equivalent to calling the <xref:System.Uri.%23ctor%2A> constructor with <xref:System.UriKind> set to <xref:System.UriKind.Absolute>. If the `string` parameter passed to the constructor is a relative URI, this constructor will throw a <xref:System.UriFormatException>.
203+
This constructor assumes that the `string` parameter references an absolute URI and is equivalent to calling the <xref:System.Uri.%23ctor%2A> constructor with <xref:System.UriKind> set to <xref:System.UriKind.Absolute>. If the `string` parameter passed to the constructor is a relative URI, this constructor throws a <xref:System.UriFormatException>.
201204
202205
## Examples
203-
The following example creates a <xref:System.Uri> instance with the URI `http://www.contoso.com/`.
204206
205-
:::code language="csharp" source="~/snippets/csharp/System/Uri/.ctor/source.cs" id="Snippet1":::
206-
:::code language="fsharp" source="~/snippets/fsharp/System/Uri/.ctor/source.fs" id="Snippet1":::
207-
:::code language="vb" source="~/snippets/visualbasic/System/Uri/.ctor/source.vb" id="Snippet1":::
207+
The following example creates a <xref:System.Uri> instance with the URI `http://www.contoso.com/`.
208+
209+
:::code language="csharp" source="~/snippets/csharp/System/Uri/.ctor/source.cs" id="Snippet1":::
210+
:::code language="fsharp" source="~/snippets/fsharp/System/Uri/.ctor/source.fs" id="Snippet1":::
211+
:::code language="vb" source="~/snippets/visualbasic/System/Uri/.ctor/source.vb" id="Snippet1":::
208212
209213
]]></format>
210214
</remarks>
@@ -224,23 +228,11 @@ The following code snippet shows example values of the various properties on the
224228

225229
-or-
226230

227-
The password specified in <paramref name="uriString" /> is not valid.
228-
229-
-or-
230-
231-
The host name specified in <paramref name="uriString" /> is not valid.
232-
233-
-or-
234-
235-
The file name specified in <paramref name="uriString" /> is not valid.
231+
The password, host name, file name, or user name specified in <paramref name="uriString" /> is not valid.
236232

237233
-or-
238234

239-
The user name specified in <paramref name="uriString" /> is not valid.
240-
241-
-or-
242-
243-
The host or authority name specified in <paramref name="uriString" /> cannot be terminated by backslashes.
235+
The host or authority name specified in <paramref name="uriString" /> is terminated by backslashes.
244236

245237
-or-
246238

0 commit comments

Comments
 (0)