Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Initializes a new instance of the Uri class with the specified URI.
Namespace: System
Assembly: System.Http (in System.Http.dll)
Syntax
'Declaration
Public Sub New ( _
uriString As String _
)
public Uri(
string uriString
)
public:
Uri(
String^ uriString
)
new :
uriString:string -> Uri
public function Uri(
uriString : String
)
Parameters
- uriString
Type: System. . :: . .String
A URI.
Remarks
This constructor creates a Uri instance from a URI string. It parses the URI, puts it in canonical format, and makes any required escape encodings.
This constructor does not ensure that the Uri refers to an accessible resource.
This constructor assumes that the string parameter references an absolute URI and is equivalent to calling the Uri constructor with UriKind set to Absolute. If the string parameter passed to the constructor is a relative URI, this constructor will throw a UriFormatException.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.