Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Uri Methods

Uri Methods

The Uri type exposes the following members.

  NameDescription
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework Canonicalize Infrastructure. Obsolete. Converts the internally stored URI to canonical form.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework CheckHostName Determines whether the specified host name is a valid DNS name.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework CheckSchemeName Determines whether the specified scheme name is valid.
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework CheckSecurity Infrastructure. Obsolete. Calling this method has no effect.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework Compare Compares the specified parts of two URIs using the specified comparison rules.
Public method CreateObjRef Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Equals Compares two Uri instances for equality. (Overrides Object.Equals(Object).)
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework Escape Infrastructure. Obsolete. Converts any unsafe or reserved characters in the path component to their hexadecimal character representations.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework EscapeDataString Converts a string to its escaped representation.
Protected method Static member Supported by the .NET Compact Framework Supported by the XNA Framework EscapeString Obsolete. Converts a string to its escaped representation.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework EscapeUriString Converts a URI string to its escaped representation.
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework FromHex Gets the decimal value of a hexadecimal digit.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetComponents Gets the specified components of the current instance using the specified escaping for special characters.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetHashCode Gets the hash code for the URI. (Overrides Object.GetHashCode().)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetLeftPart Gets the specified portion of a Uri instance.
Public method GetLifetimeService Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected method GetObjectData Returns the data needed to serialize the current instance.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetType Gets the type of the current instance. (Inherited from Object.)
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework HexEscape Converts a specified character into its hexadecimal equivalent.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework HexUnescape Converts a specified hexadecimal representation of a character to the character.
Public method InitializeLifetimeService Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework IsBadFileSystemCharacter Infrastructure. Obsolete. Gets whether a character is invalid in a file system name.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework IsBaseOf Determines whether the current Uri instance is a base of the specified Uri instance.
Protected method Static member Supported by the .NET Compact Framework Supported by the XNA Framework IsExcludedCharacter Infrastructure. Obsolete. Gets whether the specified character should be escaped.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework IsHexDigit Determines whether a specified character is a valid hexadecimal digit.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework IsHexEncoding Determines whether a character in a string is hexadecimal encoded.
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework IsReservedCharacter Infrastructure. Obsolete. Gets whether the specified character is a reserved character.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework IsWellFormedOriginalString Indicates whether the string used to construct this Uri was well-formed and is not required to be further escaped.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework 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 method Supported by the .NET Compact Framework Supported by the XNA Framework MakeRelative Obsolete. Determines the difference between two Uri instances.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework MakeRelativeUri Determines the difference between two Uri instances.
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework Parse Infrastructure. Obsolete. Parses the URI of the current instance to ensure it contains all the parts required for a valid URI.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework ToString Gets a canonical string representation for the specified Uri instance. (Overrides Object.ToString().)
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework TryCreate Overloaded. Creates a new Uri. Does not throw an exception if the Uri cannot be created.
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework Unescape Infrastructure. Obsolete. Converts the specified string by replacing any escape sequences with their unescaped representation.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework UnescapeDataString Converts a string to its unescaped representation.
Top

  NameDescription
Explicit interface implemetation Private method ISerializable.GetObjectData Returns the data needed to serialize the current instance.
Top

Community Additions

ADD
Show:
© 2015 Microsoft