This documentation is archived and is not being maintained.
Uri Methods
Visual Studio 2010
The Uri type exposes the following members.
| Name | Description | |
|---|---|---|
|
Canonicalize | Infrastructure. Obsolete. Converts the internally stored URI to canonical form. |
|
CheckHostName | Determines whether the specified host name is a valid DNS name. |
|
CheckSchemeName | Determines whether the specified scheme name is valid. |
|
CheckSecurity | Infrastructure. Obsolete. Calling this method has no effect. |
|
Compare | Compares the specified parts of two URIs using the specified comparison rules. |
|
Equals | Compares two Uri instances for equality. (Overrides Object::Equals(Object).) |
|
Escape | Infrastructure. Obsolete. Converts any unsafe or reserved characters in the path component to their hexadecimal character representations. |
|
EscapeDataString | Converts a string to its escaped representation. |
|
EscapeString | Obsolete. Converts a string to its escaped representation. |
|
EscapeUriString | Converts a URI string to its escaped representation. |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
FromHex | Gets the decimal value of a hexadecimal digit. |
|
GetComponents | Gets the specified components of the current instance using the specified escaping for special characters. |
|
GetHashCode | Gets the hash code for the URI. (Overrides Object::GetHashCode().) |
|
GetLeftPart | Gets the specified portion of a Uri instance. |
|
GetObjectData | Returns the data needed to serialize the current instance. |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
HexEscape | Converts a specified character into its hexadecimal equivalent. |
|
HexUnescape | Converts a specified hexadecimal representation of a character to the character. |
|
IsBadFileSystemCharacter | Infrastructure. Obsolete. Gets whether a character is invalid in a file system name. |
|
IsBaseOf | Determines whether the current Uri instance is a base of the specified Uri instance. |
|
IsExcludedCharacter | Infrastructure. Obsolete. Gets whether the specified character should be escaped. |
|
IsHexDigit | Determines whether a specified character is a valid hexadecimal digit. |
|
IsHexEncoding | Determines whether a character in a string is hexadecimal encoded. |
|
IsReservedCharacter | Infrastructure. Obsolete. Gets whether the specified character is a reserved character. |
|
IsWellFormedOriginalString | Indicates whether the string used to construct this Uri was well-formed and is not required to be further escaped. |
|
IsWellFormedUriString | Indicates whether the string is well-formed by attempting to construct a URI with the string and ensures that the string does not require further escaping. |
|
MakeRelative | Obsolete. Determines the difference between two Uri instances. |
|
MakeRelativeUri | Determines the difference between two Uri instances. |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
Parse | Infrastructure. Obsolete. Parses the URI of the current instance to ensure it contains all the parts required for a valid URI. |
|
ToString | Gets a canonical string representation for the specified Uri instance. (Overrides Object::ToString().) |
|
TryCreate(String, UriKind, Uri%) | Creates a new Uri using the specified String instance and a UriKind. |
|
TryCreate(Uri, String, Uri%) | Creates a new Uri using the specified base and relative String instances. |
|
TryCreate(Uri, Uri, Uri%) | Creates a new Uri using the specified base and relative Uri instances. |
|
Unescape | Infrastructure. Obsolete. Converts the specified string by replacing any escape sequences with their unescaped representation. |
|
UnescapeDataString | Converts a string to its unescaped representation. |
| Name | Description | |
|---|---|---|
|
ISerializable::GetObjectData | Returns the data needed to serialize the current instance. |
Show: