Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Uri Members

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

The following tables list the members exposed by the Uri type.

(see also Protected Constructors )
  Name Description
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Uri Overloaded. Initializes a new instance of the Uri class.
Top

  Name Description
Protected method Supported by the XNA Framework Uri Overloaded. Initializes a new instance of the Uri class.
Top

  Name Description
Public field Static 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 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 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 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 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 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 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 Supported by the .NET Compact Framework Supported by the XNA Framework UriSchemeNetPipe Specifies that the URI is accessed through the NetPipe scheme of the "Indigo" system. This field is read-only.
Public field Static Supported by the .NET Compact Framework Supported by the XNA Framework UriSchemeNetTcp Specifies that the URI is accessed through the NetTcp scheme of the "Indigo" system. This field is read-only.
Public field Static 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 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

  Name Description
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

(see also Protected Methods )
  Name Description
Public method Static 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 Supported by the .NET Compact Framework Supported by the XNA Framework CheckSchemeName Determines whether the specified scheme name is valid.
Public method Static 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 Overloaded. Overridden. Compares two Uri instances for equality.
Public method Static Supported by the .NET Compact Framework Supported by the XNA Framework EscapeDataString Converts a string to its escaped representation.
Public method Static Supported by the .NET Compact Framework Supported by the XNA Framework EscapeUriString Converts a URI string to its escaped representation.
Public method Static 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 Overridden. Gets the hash code for the URI.
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)
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 Supported by the .NET Compact Framework Supported by the XNA Framework HexEscape Converts a specified character into its hexadecimal equivalent.
Public method Static 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)
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.
Public method Static 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 Supported by the .NET Compact Framework Supported by the XNA Framework IsHexEncoding Determines whether a character in a string is hexadecimal encoded.
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 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 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.
Public method Static Supported by the .NET Compact Framework Supported by the XNA Framework op_Equality Determines whether two Uri instances have the same value.
Public method Static Supported by the .NET Compact Framework Supported by the XNA Framework op_Inequality Determines whether two Uri instances do not have the same value.
Public method Static Supported by the .NET Compact Framework ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework ToString Overridden. Gets a canonical string representation for the specified Uri instance.
Public method Static 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.
Public method Static Supported by the .NET Compact Framework Supported by the XNA Framework UnescapeDataString Converts a string to its unescaped representation.
Top

  Name Description
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework Canonicalize Converts the internally stored URI to canonical form.
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework CheckSecurity Calling this method has no effect.
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework Escape Converts any unsafe or reserved characters in the path component to their hexadecimal character representations.
Protected method Static Supported by the .NET Compact Framework Supported by the XNA Framework EscapeString Converts a string to its escaped representation.
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Protected method GetObjectData Returns the data needed to serialize the current instance.
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework IsBadFileSystemCharacter Gets whether a character is invalid in a file system name.
Protected method Static Supported by the .NET Compact Framework Supported by the XNA Framework IsExcludedCharacter Gets whether the specified character should be escaped.
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework IsReservedCharacter Gets whether the specified character is a reserved character.
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 Parses the URI of the current instance to ensure it contains all the parts required for a valid URI.
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework Unescape Converts the specified string by replacing any escape sequences with their unescaped representation.
Top

Community Additions

Show:
© 2014 Microsoft