The properties of System.Uri are listed below. For a list of all members, see the Uri Members list.
See Also: Inherited members from System.Object
[read-only] | AbsolutePath | string.
![]() Gets the absolute path of the URI. |
[read-only] | AbsoluteUri | string.
![]() Gets the absolute URI. |
[read-only] | Authority | string.
![]() Gets the Domain Name System (DNS) host name or IP address and the port number for a server. |
[read-only] | DnsSafeHost | string.
![]() Gets an unescaped host name that is safe to use for DNS resolution. |
[read-only] | Fragment | string.
![]() Gets the escaped URI fragment. |
[read-only] | Host | string.
![]() Gets the host component of this instance. |
[read-only] | HostNameType | UriHostNameType.
![]() Gets the type of the host name specified in the URI. |
[read-only] | IsAbsoluteUri | bool.
![]() Gets whether the Uri instance is absolute. |
[read-only] | IsDefaultPort | bool.
![]() Gets whether the port value of the URI is the default for this scheme. |
[read-only] | IsFile | bool.
![]() Gets a value indicating whether the specified Uri is a file URI. |
[read-only] | IsLoopback | bool.
![]() Gets whether the specified Uri references the local host. |
[read-only] | IsUnc | bool.
![]() Gets whether the specified Uri is a universal naming convention (UNC) path. |
[read-only] | LocalPath | string.
![]() Gets a local operating-system representation of a file name. |
[read-only] | OriginalString | string.
![]() Gets the original URI string that was passed to the Uri constructor. |
[read-only] | PathAndQuery | string.
![]() Gets the Uri.AbsolutePath and Uri.Query properties separated by a question mark (?). |
[read-only] | Port | int.
![]() Gets the port number of this URI. |
[read-only] | Query | string.
![]() Gets any query information included in the specified URI. |
[read-only] | Scheme | string.
![]() Gets the scheme name for this URI. |
[read-only] | Segments | string[].
![]() Gets an array containing the path segments that make up the specified URI. |
[read-only] | UserEscaped | bool.
![]() Indicates that the URI string was completely escaped before the Uri instance was created. |
[read-only] | UserInfo | string.
![]() Gets the user name, password, or other user-specific information associated with the specified URI. |