Uri Members
The following tables list the members exposed by the Uri type.
Public Constructors
Name | Description | |
---|---|---|
Uri | Overloaded. Creates a new instance of the Uri class. |
Public Fields
Name | Description | |
---|---|---|
HttpDefaultPort | This constant stores the default port for the http protocol, which is 80. | |
HttpsDefaultPort | This constant stores the default port for the https protocol, which is 443. |
Protected Fields
Name | Description | |
---|---|---|
m_AbsolutePath | The absolute path of the Uri. | |
m_Flags | Internal flags for the Uri. | |
m_host | The host name (this can begin with http or https). | |
m_hostNameType | The type of the host, such as Dns or IPv4. | |
m_isAbsoluteUri | Whether the Uri is absolute. | |
m_isUnc | Whether the path is a UNC (Universal Naming Convention) path. | |
m_OriginalUriString | The original string that was passed to the Uri constructor. | |
m_port | The port that is used by this Uri. | |
m_scheme | The scheme of the Uri. | |
UnknownPort | This constant indicates that the port for this protocol is unknown. |
Public Properties
Name | Description | |
---|---|---|
AbsolutePath | Gets a local operating-system representation of a file name, including the path. | |
AbsoluteUri | Gets a string containing the absolute Uri or entire Uri of this instance. | |
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. | |
IsLoopback | Gets whether the specified Uri refers to the local host. | |
IsUnc | Gets whether the specified Uri is a universal naming convention (UNC) path. | |
OriginalString | Gets the original URI string that was passed to the Uri constructor. | |
Port | Gets the port number of this URI. | |
Scheme | Gets the scheme name for this URI. |
Public Methods
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
IsWellFormedUriString | Indicates whether the string is well-formed by attempting to construct a URI with the string. | |
ReferenceEquals | (Inherited from Object.) | |
ToString | (Inherited from Object.) |
Protected Methods
Name | Description | |
---|---|---|
ConstructAbsoluteUri | Constructs an absolute Uri from a URI string. | |
Finalize | (Inherited from Object.) | |
IsAlpha | Checks to see if the character value is an alpha character. | |
IsAlphaNumeric | Checks to see if the character value is an alpha or numeric. | |
IsHex | Checks to see if the character value is Hex. | |
IsIPv4 | Returns whether the host name is an IP address with 4 bytes, such as: 192.12.1.1 | |
MemberwiseClone | (Inherited from Object.) | |
ParseUriString | Parses a URI string into Uri variables. | |
ValidateRelativePath | Parses a relative Uri into variables. | |
ValidateUriPart | Validates that the part of the Uri after the scheme is valid, for an unknown Uri scheme. | |
ValidateUrn | Parses a Urn string into Uri variables. |