This documentation is archived and is not being maintained.
Uri Properties
Visual Studio 2010
The Uri type exposes the following members.
| Name | Description | |
|---|---|---|
|
AbsolutePath | Gets the absolute path of the URI. |
|
AbsoluteUri | Gets the absolute URI. |
|
Authority | Gets the Domain Name System (DNS) host name or IP address and the port number for a server. |
|
DnsSafeHost | Gets an unescaped host name that is safe to use for DNS resolution. |
|
Fragment | Gets the escaped URI fragment. |
|
Host | Gets the host component of this instance. |
|
HostNameType | Gets the type of the host name specified in the URI. |
|
IsAbsoluteUri | Gets whether the Uri instance is absolute. |
|
IsDefaultPort | Gets whether the port value of the URI is the default for this scheme. |
|
IsFile | Gets a value indicating whether the specified Uri is a file URI. |
|
IsLoopback | Gets whether the specified Uri references the local host. |
|
IsUnc | Gets whether the specified Uri is a universal naming convention (UNC) path. |
|
LocalPath | Gets a local operating-system representation of a file name. |
|
OriginalString | Gets the original URI string that was passed to the Uri constructor. |
|
PathAndQuery | Gets the AbsolutePath and Query properties separated by a question mark (?). |
|
Port | Gets the port number of this URI. |
|
Query | Gets any query information included in the specified URI. |
|
Scheme | Gets the scheme name for this URI. |
|
Segments | Gets an array containing the path segments that make up the specified URI. |
|
UserEscaped | Indicates that the URI string was completely escaped before the Uri instance was created. |
|
UserInfo | Gets the user name, password, or other user-specific information associated with the specified URI. |
Show: