The members of System.Uri are listed below.
See Also: Inherited members from System.Object
![]() Initializes a new instance of the Uri class with the specified URI. | ||
![]() Initializes a new instance of the Uri class with the specified URI, with explicit control of character escaping. | ||
![]() Initializes a new instance of the Uri class with the specified URI. This constructor allows you to specify if the URI string is a relative URI, absolute URI, or is indeterminate. | ||
![]() Initializes a new instance of the Uri class based on the specified base URI and relative URI string. | ||
![]() Initializes a new instance of the Uri class based on the combination of a specified base Uri instance and a relative Uri instance. | ||
![]() Initializes a new instance of the Uri class based on the specified base and relative URIs, with explicit control of character escaping. |
![]() Initializes a new instance of the Uri class from the specified instances of the System.Runtime.Serialization.SerializationInfo and System.Runtime.Serialization.StreamingContext classes. |
static readonly | SchemeDelimiter | string.
![]() Specifies the characters that separate the communication protocol scheme from the address portion of the URI. This field is read-only. |
static readonly | UriSchemeFile | string (file).
![]() Specifies that the URI is a pointer to a file. This field is read-only. |
static readonly | UriSchemeFtp | string (ftp).
![]() Specifies that the URI is accessed through the File Transfer Protocol (FTP). This field is read-only. |
static readonly | UriSchemeGopher | string (gopher).
![]() Specifies that the URI is accessed through the Gopher protocol. This field is read-only. |
static readonly | UriSchemeHttp | string (http).
![]() Specifies that the URI is accessed through the Hypertext Transfer Protocol (HTTP). This field is read-only. |
static readonly | UriSchemeHttps | string (https).
![]() Specifies that the URI is accessed through the Secure Hypertext Transfer Protocol (HTTPS). This field is read-only. |
static readonly | UriSchemeMailto | string (mailto).
![]() Specifies that the URI is an e-mail address and is accessed through the Simple Mail Transport Protocol (SMTP). This field is read-only. |
static readonly | UriSchemeNetPipe | string.
![]() Specifies that the URI is accessed through the NetPipe scheme used by Windows Communication Foundation (WCF). This field is read-only. |
static readonly | UriSchemeNetTcp | string.
![]() Specifies that the URI is accessed through the NetTcp scheme used by Windows Communication Foundation (WCF). This field is read-only. |
static readonly | UriSchemeNews | string (news).
![]() Specifies that the URI is an Internet news group and is accessed through the Network News Transport Protocol (NNTP). This field is read-only. |
static readonly | UriSchemeNntp | string (nntp).
![]() Specifies that the URI is an Internet news group and is accessed through the Network News Transport Protocol (NNTP). This field is read-only. |
[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. |
static | CheckHostName(string)
| |
static | CheckSchemeName(string)
| |
static | Compare(Uri, Uri, UriComponents, UriFormat, StringComparison)
| |
override | Equals(object)
| |
static | EscapeDataString(string)
| |
static | EscapeUriString(string)
| |
static | FromHex(char)
| |
GetComponents(UriComponents, UriFormat)
| ||
override | GetHashCode()
| |
GetLeftPart(UriPartial)
| ||
static | HexEscape(char)
| |
static | HexUnescape(string, ref int)Converts a specified escaped hexadecimal representation of a character to the character. | |
IsBaseOf(Uri)
| ||
static | IsHexDigit(char)
| |
static | IsHexEncoding(string, int)
| |
IsWellFormedOriginalString()
| ||
static | IsWellFormedUriString(string, UriKind)
| |
MakeRelative(Uri)
| ||
MakeRelativeUri(Uri)
| ||
override | ToString()
| |
static | TryCreate(string, UriKind, out Uri)Documentation for this section has not yet been entered. | |
static | TryCreate(Uri, string, out Uri)Documentation for this section has not yet been entered. | |
static | TryCreate(Uri, Uri, out Uri)Documentation for this section has not yet been entered. | |
static | UnescapeDataString(string)
|
Canonicalize()
| ||
CheckSecurity()
| ||
Escape()
| ||
static | EscapeString(string)
| |
GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
| ||
IsBadFileSystemCharacter(char)
| ||
static | IsExcludedCharacter(char)
| |
IsReservedCharacter(char)
| ||
Parse()
| ||
Unescape(string)
|
System.Runtime.Serialization.ISerializable.GetObjectData |
![]() Returns the data needed to serialize the current instance. |