System.Uri: Property Members

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

Public Properties

[read-only]
AbsolutePathstring.

Gets the absolute path of the URI.

[read-only]
AbsoluteUristring.

Gets the absolute URI.

[read-only]
Authoritystring.

Gets the Domain Name System (DNS) host name or IP address and the port number for a server.

[read-only]
DnsSafeHoststring.

Gets an unescaped host name that is safe to use for DNS resolution.

[read-only]
Fragmentstring.

Gets the escaped URI fragment.

[read-only]
Hoststring.

Gets the host component of this instance.

[read-only]
HostNameTypeUriHostNameType.

Gets the type of the host name specified in the URI.

[read-only]
IsAbsoluteUribool.

Gets whether the Uri instance is absolute.

[read-only]
IsDefaultPortbool.

Gets whether the port value of the URI is the default for this scheme.

[read-only]
IsFilebool.

Gets a value indicating whether the specified Uri is a file URI.

[read-only]
IsLoopbackbool.

Gets whether the specified Uri references the local host.

[read-only]
IsUncbool.

Gets whether the specified Uri is a universal naming convention (UNC) path.

[read-only]
LocalPathstring.

Gets a local operating-system representation of a file name.

[read-only]
OriginalStringstring.

Gets the original URI string that was passed to the Uri constructor.

[read-only]
PathAndQuerystring.

Gets the Uri.AbsolutePath and Uri.Query properties separated by a question mark (?).

[read-only]
Portint.

Gets the port number of this URI.

[read-only]
Querystring.

Gets any query information included in the specified URI.

[read-only]
Schemestring.

Gets the scheme name for this URI.

[read-only]
Segmentsstring[].

Gets an array containing the path segments that make up the specified URI.

[read-only]
UserEscapedbool.

Indicates that the URI string was completely escaped before the Uri instance was created.

[read-only]
UserInfostring.

Gets the user name, password, or other user-specific information associated with the specified URI.