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
+14-22Lines changed: 14 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -187,24 +187,28 @@ The following code snippet shows example values of the various properties on the
187
187
</Parameter>
188
188
</Parameters>
189
189
<Docs>
190
-
<paramname="uriString">A string that identifies the resource to be represented by the <seecref="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
+
<paramname="uriString">A string that identifies the resource to be represented by the <seecref="T:System.Uri" /> instance.</param>
191
191
<summary>Initializes a new instance of the <seecref="T:System.Uri" /> class with the specified URI.</summary>
192
192
<remarks>
193
193
<formattype="text/markdown"><![CDATA[
194
194
195
195
## 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.
197
196
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]".
199
202
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>.
201
204
202
205
## Examples
203
-
The following example creates a <xref:System.Uri> instance with the URI `http://www.contoso.com/`.
0 commit comments