Initializes a new instance of the System.Uri class with the specified URI.
A string that identifies the resource to be represented by the System.Uri instance. Note that an IPv6 address in string form must be enclosed within brackets. For example, "http://[2607:f8b0:400d:c06::69]".
Initializes a new instance of the System.Uri class based on the specified base URI and relative URI string.
Gets the absolute path of the URI.
A System.String containing the absolute path to the resource.
Gets the absolute URI.
A System.String containing the entire URI.
Gets the Domain Name System (DNS) host name or IP address and the port number for a server.
A System.String containing the authority component of the URI represented by this instance.
Gets the escaped URI fragment.
A System.String that contains any URI fragment information.
Gets the host component of this instance.
A System.String that contains the host name. This is usually the DNS host name or IP address of the server.
Gets whether the System.Uri instance is absolute.
A System.Boolean value that is true if the System.Uri instance is absolute; otherwise, false.
Gets a value indicating whether the specified System.Uri is a file URI.
A System.Boolean value that is true if the System.Uri is a file URI; otherwise, false.
Gets whether the specified System.Uri references the local host.
A System.Boolean value that is true if this System.Uri references the local host; otherwise, false.
Gets the original URI string that was passed to the System.Uri constructor.
A System.String containing the exact URI specified when this instance was constructed; otherwise, System.String.Empty.
Gets the System.Uri.AbsolutePath and System.Uri.Query properties separated by a question mark (?).
A System.String that contains the System.Uri.AbsolutePath and System.Uri.Query properties separated by a question mark (?).
Gets the port number of this URI.
An System.Int32 value that contains the port number for this URI.
Gets any query information included in the specified URI.
A System.String that contains any query information included in the specified URI.
Gets the scheme name for this URI.
A System.String that contains the scheme for this URI, converted to lowercase.
Determines whether the current System.Uri instance is a base of the specified System.Uri instance.
The specified System.Uri instance to test.
true if the current System.Uri instance is a base of uri; otherwise, false.
Static
EqualsDetermines whether the specified object instances are considered equal.
The first object to compare.
The second object to compare.
true if the objects are considered equal; otherwise, false. If both objA and objB are null, the method returns true.
Static
EscapeConverts a string to its escaped representation.
The string to escape.
A System.String that contains the escaped representation of stringToEscape.
Static
UnescapeConverts a string to its unescaped representation.
The string to unescape.
A System.String that contains the unescaped representation of stringToUnescape.
Provides an object representation of a uniform resource identifier (URI) and easy access to the parts of the URI.