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
+54-54Lines changed: 54 additions & 54 deletions
Original file line number
Diff line number
Diff line change
@@ -759,10 +759,10 @@ The following code snippet shows example values of the various properties on the
759
759
## Examples
760
760
The following example creates a new instance of the <xref:System.Uri> class by combining the relative URIs `http://www.contoso.com` and `catalog/shownew.htm` to form the absolute URI `http://www.contoso.com/catalog/shownew.htm`.
@@ -874,11 +874,11 @@ The following code snippet shows example values of the various properties on the
874
874
875
875
## Examples
876
876
This example creates an absolute <xref:System.Uri> instance, `absoluteUri`, and a relative <xref:System.Uri> instance, `relativeUri`. A new <xref:System.Uri> instance, `combinedUri`, is then created from these two instances.
<exceptioncref="T:System.InvalidOperationException">This instance represents a relative URI, and this property is valid only for absolute URIs.</exception>
@@ -1169,10 +1169,10 @@ The URI formed by combining <paramref name="baseUri" /> and <paramref name="rela
1169
1169
## Examples
1170
1170
The following example writes the complete contents of the <xref:System.Uri> instance to the console. In the example shown, `http://www.contoso.com/catalog/shownew.htm?date=today` is written to the console.
<exceptioncref="T:System.InvalidOperationException">This instance represents a relative URI, and this property is valid only for absolute URIs.</exception>
@@ -2228,10 +2228,10 @@ The length of <paramref name="stringToEscape" /> exceeds 32766 characters.</exce
2228
2228
## Examples
2229
2229
The following example creates a <xref:System.Uri> instance and writes the path to the console.
<exceptioncref="T:System.InvalidOperationException">This instance represents a relative URI, and this property is valid only for absolute URIs.</exception>
@@ -3339,11 +3339,11 @@ The length of <paramref name="stringToEscape" /> exceeds 32766 characters.</exce
3339
3339
3340
3340
## Examples
3341
3341
The following example creates a <xref:System.Uri> instance and writes the local path to the console.
<exceptioncref="T:System.InvalidOperationException">This instance represents a relative URI, and this property is valid only for absolute URIs.</exception>
@@ -3487,10 +3487,10 @@ The length of <paramref name="stringToEscape" /> exceeds 32766 characters.</exce
3487
3487
## Examples
3488
3488
The following example creates 2 <xref:System.Uri> instances. The difference in the path information is written to the console.
<exceptioncref="T:System.InvalidOperationException">This instance represents a relative URI, and this property is valid only for absolute URIs.</exception>
@@ -3889,11 +3889,11 @@ The length of <paramref name="stringToEscape" /> exceeds 32766 characters.</exce
3889
3889
3890
3890
## Examples
3891
3891
The following example writes the query ?date= today to the console.
<exceptioncref="T:System.InvalidOperationException">This instance represents a relative URI, and this property is valid only for absolute URIs.</exception>
@@ -3963,10 +3963,10 @@ The length of <paramref name="stringToEscape" /> exceeds 32766 characters.</exce
3963
3963
## Examples
3964
3964
The following example writes the scheme name (http) to the console for the `http://www.contoso.com/` URI.
<exceptioncref="T:System.InvalidOperationException">This instance represents a relative URI, and this property is valid only for absolute URIs.</exception>
@@ -4093,11 +4093,11 @@ The length of <paramref name="stringToEscape" /> exceeds 32766 characters.</exce
4093
4093
4094
4094
## Examples
4095
4095
The following example creates a <xref:System.Uri> instance with 3 segments and displays the segments on the screen.
<exceptioncref="T:System.InvalidOperationException">This instance represents a relative URI, and this property is valid only for absolute URIs.</exception>
0 commit comments