Uri Members

Provides an object representation of a uniform resource identifier (URI) and easy access to the parts of the URI.

The Uri type exposes the following members.

  NameDescription
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Uri Overloaded. Initializes a new instance of the Uri class.
Top

  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
Public operator Static member Supported by the .NET Compact Framework Supported by the XNA Framework Equality Determines whether two Uri instances have the same value.
Public operator Static member Supported by the .NET Compact Framework Supported by the XNA Framework Inequality Determines whether two Uri instances do not have the same value.
Top

  NameDescription
Public field Static member Supported by the .NET Compact Framework Supported by the XNA Framework SchemeDelimiter Specifies the characters that separate the communication protocol scheme from the address portion of the URI. This field is read-only.
Public field Static member Supported by the .NET Compact Framework Supported by the XNA Framework UriSchemeFile Specifies that the URI is a pointer to a file. This field is read-only.
Public field Static member Supported by the .NET Compact Framework Supported by the XNA Framework UriSchemeFtp Specifies that the URI is accessed through the File Transfer Protocol (FTP). This field is read-only.
Public field Static member Supported by the .NET Compact Framework Supported by the XNA Framework UriSchemeGopher Specifies that the URI is accessed through the Gopher protocol. This field is read-only.
Public field Static member Supported by the .NET Compact Framework Supported by the XNA Framework UriSchemeHttp Specifies that the URI is accessed through the Hypertext Transfer Protocol (HTTP). This field is read-only.
Public field Static member Supported by the .NET Compact Framework Supported by the XNA Framework UriSchemeHttps Specifies that the URI is accessed through the Secure Hypertext Transfer Protocol (HTTPS). This field is read-only.
Public field Static member Supported by the .NET Compact Framework Supported by the XNA Framework UriSchemeMailto Specifies that the URI is an e-mail address and is accessed through the Simple Mail Transport Protocol (SMTP). This field is read-only.
Public field Static member Supported by the .NET Compact Framework Supported by the XNA Framework UriSchemeNetPipe Specifies that the URI is accessed through the NetPipe scheme used by Windows Communication Foundation (WCF). This field is read-only.
Public field Static member Supported by the .NET Compact Framework Supported by the XNA Framework UriSchemeNetTcp Specifies that the URI is accessed through the NetTcp scheme used by Windows Communication Foundation (WCF). This field is read-only.
Public field Static member Supported by the .NET Compact Framework Supported by the XNA Framework UriSchemeNews Specifies that the URI is an Internet news group and is accessed through the Network News Transport Protocol (NNTP). This field is read-only.
Public field Static member Supported by the .NET Compact Framework Supported by the XNA Framework UriSchemeNntp Specifies that the URI is an Internet news group and is accessed through the Network News Transport Protocol (NNTP). This field is read-only.
Top

  NameDescription
Public property Supported by the .NET Compact Framework Supported by the XNA Framework AbsolutePath Gets the absolute path of the URI.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework AbsoluteUri Gets the absolute URI.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework Authority Gets the Domain Name System (DNS) host name or IP address and the port number for a server.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework DnsSafeHost Gets an unescaped host name that is safe to use for DNS resolution.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework Fragment Gets the escaped URI fragment.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework Host Gets the host component of this instance.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework HostNameType Gets the type of the host name specified in the URI.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework IsAbsoluteUri Gets whether the Uri instance is absolute.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework IsDefaultPort Gets whether the port value of the URI is the default for this scheme.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework IsFile Gets a value indicating whether the specified Uri is a file URI.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework IsLoopback Gets whether the specified Uri references the local host.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework IsUnc Gets whether the specified Uri is a universal naming convention (UNC) path.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework LocalPath Gets a local operating-system representation of a file name.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework OriginalString Gets the original URI string that was passed to the Uri constructor.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework PathAndQuery Gets the AbsolutePath and Query properties separated by a question mark (?).
Public property Supported by the .NET Compact Framework Supported by the XNA Framework Port Gets the port number of this URI.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework Query Gets any query information included in the specified URI.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework Scheme Gets the scheme name for this URI.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework Segments Gets an array containing the path segments that make up the specified URI.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework UserEscaped Indicates that the URI string was completely escaped before the Uri instance was created.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework UserInfo Gets the user name, password, or other user-specific information associated with the specified URI.
Top

  NameDescription
Explicit interface implemetation Private method ISerializable.GetObjectData Returns the data needed to serialize the current instance.
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft