This documentation is archived and is not being maintained.

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 Uri Overloaded. Initializes a new instance of the Uri class.
Top

  Name Description
Protected method Uri Overloaded. Initializes a new instance of the Uri class.
Top

  Name Description
Public field Static Supported by the .NET Compact 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 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 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 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 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 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 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 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 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 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 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 AbsolutePath Gets the absolute path of the URI.
Public property Supported by the .NET Compact Framework AbsoluteUri Gets the absolute URI.
Public property Supported by the .NET Compact 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 DnsSafeHost Gets an unescaped host name that is safe to use for DNS resolution.
Public property Supported by the .NET Compact Framework Fragment Gets the escaped fragment.
Public property Supported by the .NET Compact Framework Host Gets the host component of this instance.
Public property Supported by the .NET Compact Framework HostNameType Returns the type of the host name specified in the URI.
Public property Supported by the .NET Compact Framework IsAbsoluteUri Gets a Boolean value that indicates whether the Uri instance is absolute.
Public property Supported by the .NET Compact Framework IsDefaultPort Gets a value indicating whether the port value of the URI is the default for this scheme.
Public property Supported by the .NET Compact Framework IsFile Gets a value indicating whether the specified Uri is a file URI.
Public property Supported by the .NET Compact Framework IsLoopback Gets a Boolean value indicating whether the specified Uri references the local host.
Public property Supported by the .NET Compact Framework IsUnc Gets a Boolean value indicating whether the specified Uri is a universal naming convention (UNC) path.
Public property Supported by the .NET Compact Framework LocalPath Gets a local operating-system representation of a file name.
Public property Supported by the .NET Compact Framework OriginalString Gets the original URI string that was passed to the Uri constructor.
Public property Supported by the .NET Compact Framework PathAndQuery Gets the AbsolutePath and Query properties separated by a question mark (?).
Public property Supported by the .NET Compact Framework Port Gets the port number of this URI.
Public property Supported by the .NET Compact Framework Query Gets any query information included in the specified URI.
Public property Supported by the .NET Compact Framework Scheme Gets the scheme name for this URI.
Public property Supported by the .NET Compact Framework Segments Gets an array containing the path segments that make up the specified URI.
Public property Supported by the .NET Compact Framework UserEscaped Indicates that the URI string was completely escaped before the Uri instance was created.
Public property Supported by the .NET Compact 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 CheckHostName Determines whether the specified host name is a valid DNS name.
Public method Static Supported by the .NET Compact Framework CheckSchemeName Determines whether the specified scheme name is valid.
Public method Static 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 Equals Overloaded. Overridden. Compares two Uri instances for equality.
Public method Static Supported by the .NET Compact Framework EscapeDataString Converts a string to its escaped representation.
Public method Static Supported by the .NET Compact Framework EscapeUriString Converts a URI string to its escaped representation.
Public method Static Supported by the .NET Compact Framework FromHex Returns the decimal value of a hexadecimal digit.
Public method Supported by the .NET Compact 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 GetHashCode Overridden. Returns the hash code for the URI.
Public method Supported by the .NET Compact Framework GetLeftPart Returns 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 GetType  Gets the Type of the current instance. (Inherited from Object.)
Public method Static Supported by the .NET Compact Framework HexEscape Converts a specified character into its hexadecimal equivalent.
Public method Static Supported by the .NET Compact 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 IsBaseOf Determines whether the current Uri instance is a base of the specified Uri instance.
Public method Static Supported by the .NET Compact Framework IsHexDigit Determines whether a specified character is a valid hexadecimal digit.
Public method Static Supported by the .NET Compact Framework IsHexEncoding Determines whether a character in a string is hexadecimal encoded.
Public method Supported by the .NET Compact Framework IsWellFormedOriginalString Indicates whether the string used to construct this Uri was well-formed.
Public method Static Supported by the .NET Compact Framework IsWellFormedUriString Indicates whether the string is well-formed by attempting to construct a URI with the string.
Public method Supported by the .NET Compact Framework MakeRelative Determines the difference between two Uri instances.
Public method Supported by the .NET Compact Framework MakeRelativeUri Determines the difference between two Uri instances.
Public method Static Supported by the .NET Compact Framework op_Equality Determines whether two Uri instances have the same value.
Public method Static Supported by the .NET Compact 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 ToString Overridden. Returns a canonical string representation for the specified Uri instance.
Public method Static Supported by the .NET Compact 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 UnescapeDataString Converts a string to its unescaped representation.
Top

  Name Description
Protected method Supported by the .NET Compact Framework Canonicalize Converts the internally stored URI to canonical form.
Protected method Supported by the .NET Compact Framework CheckSecurity Calling this method has no effect.
Protected method Supported by the .NET Compact 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 EscapeString Converts a string to its escaped representation.
Protected method Supported by the .NET Compact 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 IsBadFileSystemCharacter Returns a Boolean value that indicates whether a character is invalid in a file system name.
Protected method Static Supported by the .NET Compact Framework IsExcludedCharacter Returns a Boolean that indicates whether the specified character should be escaped.
Protected method Supported by the .NET Compact Framework IsReservedCharacter Returns a Boolean that indicates whether the specified character is a reserved character.
Protected method Supported by the .NET Compact Framework MemberwiseClone  Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method Supported by the .NET Compact 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 Unescape Converts the specified string by replacing any escape sequences with their unescaped representation.
Top

  Name Description
Explicit interface implementation Method System.Runtime.Serialization.ISerializable.GetObjectData Returns the data needed to serialize the current instance.
Top
Show: