Uri Methods

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Include Protected Members
Include Inherited Members

Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members

The Uri type exposes the following members.

Methods

  Name Description
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 CheckSchemeName Determines whether the specified scheme name is valid.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Compare Compares the specified parts of two URIs using the specified comparison rules.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Equals Compares two Uri instances for equality. (Overrides Object.Equals(Object).)
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 EscapeDataString Converts a string to its escaped representation.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 EscapeUriString Converts a URI string to its escaped representation.
Protected methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 FromHex Gets the decimal value of a hexadecimal digit.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetComponents Gets the specified components of the current instance using the specified escaping for special characters.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetHashCode Gets the hash code for the URI. (Overrides Object.GetHashCode().)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetType Gets the Type of the current instance. (Inherited from Object.)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 IsBaseOf Determines whether the current Uri instance is a base of the specified Uri instance.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 IsHexDigit Determines whether a specified character is a valid hexadecimal digit.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 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.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 MakeRelativeUri Determines the difference between two Uri instances.
Protected methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToString Gets a canonical string representation for the specified Uri instance. (Overrides Object.ToString().)
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 TryCreate(String, UriKind, Uri%) Creates a new Uri using the specified String instance and a UriKind.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 TryCreate(Uri, String, Uri%) Creates a new Uri using the specified base and relative String instances.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 TryCreate(Uri, Uri, Uri%) Creates a new Uri using the specified base and relative Uri instances.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 UnescapeDataString Converts a string to its unescaped representation.

Top

See Also

Reference