Export (0) Print
Expand All

Uri Members

Uri overview

Public Constructors

public constructorUri Constructor

Supported by the .NET Compact Framework.

Overloaded. Initializes a new instance of the Uri class.

Public Fields

public fieldstatic (Shared in Visual Basic)SchemeDelimiter

Supported by the .NET Compact Framework.

Specifies the characters that separate the communication protocol scheme from the address portion of the URI. This field is read-only.
public fieldstatic (Shared in Visual Basic)UriSchemeFile

Supported by the .NET Compact Framework.

Specifies that the URI is a pointer to a file. This field is read-only.
public fieldstatic (Shared in Visual Basic)UriSchemeFtp

Supported by the .NET Compact Framework.

Specifies that the URI is accessed through the File Transfer Protocol (FTP). This field is read-only.
public fieldstatic (Shared in Visual Basic)UriSchemeGopher

Supported by the .NET Compact Framework.

Specifies that the URI is accessed through the Gopher protocol. This field is read-only.
public fieldstatic (Shared in Visual Basic)UriSchemeHttp

Supported by the .NET Compact Framework.

Specifies that the URI is accessed through the Hypertext Transfer Protocol (HTTP). This field is read-only.
public fieldstatic (Shared in Visual Basic)UriSchemeHttps

Supported by the .NET Compact Framework.

Specifies that the URI is accessed through the Secure Hypertext Transfer Protocol (HTTPS). This field is read-only.
public fieldstatic (Shared in Visual Basic)UriSchemeMailto

Supported by the .NET Compact Framework.

Specifies that the URI is an email address and is accessed through the Simple Mail Transport Protocol (SMTP). This field is read-only.
public fieldstatic (Shared in Visual Basic)UriSchemeNews

Supported by the .NET Compact Framework.

Specifes that the URI is an Internet news group and is accessed through the Network News Transport Protocol (NNTP). This field is read-only.
public fieldstatic (Shared in Visual Basic)UriSchemeNntp

Supported by the .NET Compact Framework.

Specifes that the URI is an Internet news group and is accessed through the Network News Transport Protocol (NNTP). This field is read-only.

Public Properties

public propertyAbsolutePath

Supported by the .NET Compact Framework.

Gets the absolute path of the URI.
public propertyAbsoluteUri

Supported by the .NET Compact Framework.

Gets the absolute URI.
public propertyAuthority

Supported by the .NET Compact Framework.

Gets the Domain Name System (DNS) host name or IP address and the port number for a server.
public propertyFragment

Supported by the .NET Compact Framework.

Gets the escaped fragment.
public propertyHost

Supported by the .NET Compact Framework.

Gets the Domain Name System (DNS) host name, or IP address of the server specified in the URI.
public propertyHostNameType

Supported by the .NET Compact Framework.

Returns the type of the host name specified in the URI.
public propertyIsDefaultPort

Supported by the .NET Compact Framework.

Gets a value indicating whether the port value of the URI is the default for this scheme.
public propertyIsFile

Supported by the .NET Compact Framework.

Gets a value indicating whether the specified Uri is a file URI.
public propertyIsLoopback

Supported by the .NET Compact Framework.

Gets a value indicating whether the specified Uri references the local host.
public propertyIsUnc

Supported by the .NET Compact Framework.

Gets a value indicating whether the specified Uri is a universal naming convention (UNC) path.
public propertyLocalPath

Supported by the .NET Compact Framework.

Gets a local operating-system representation of a file name.
public propertyPathAndQuery

Supported by the .NET Compact Framework.

Gets the AbsolutePath and Query properties separated by a question mark (?).
public propertyPort

Supported by the .NET Compact Framework.

Gets the port number of the specified URI.
public propertyQuery

Supported by the .NET Compact Framework.

Gets any query information included in the specified URI.
public propertyScheme

Supported by the .NET Compact Framework.

Gets the scheme name of the specified URI.
public propertySegments

Supported by the .NET Compact Framework.

Gets an array of the segments that make up the specified URI.
public propertyUserEscaped

Supported by the .NET Compact Framework.

Indicates that the URI string was escaped before the Uri instance was created.
public propertyUserInfo

Supported by the .NET Compact Framework.

Gets the user name, password, and other user-specific information associated with the specified URI.

Public Methods

public methodstatic (Shared in Visual Basic)CheckHostName

Supported by the .NET Compact Framework.

Determines whether the specified host name is valid.
public methodstatic (Shared in Visual Basic)CheckSchemeName

Supported by the .NET Compact Framework.

Determines whether the specified scheme name is valid.
public methodCreateObjRef (inherited from MarshalByRefObject) Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
public methodEquals

Supported by the .NET Compact Framework.

Overridden. Compares two Uri instances for equality.
public methodstatic (Shared in Visual Basic)FromHex

Supported by the .NET Compact Framework.

Returns the decimal value of a hexadecimal digit.
public methodGetHashCode

Supported by the .NET Compact Framework.

Overridden. Returns the hash code for the specified URI.
public methodGetLeftPart

Supported by the .NET Compact Framework.

Returns the specified portion of a URI.
public methodGetLifetimeService (inherited from MarshalByRefObject) Retrieves the current lifetime service object that controls the lifetime policy for this instance.
public methodGetType (inherited from Object)

Supported by the .NET Compact Framework.

Gets the Type of the current instance.
public methodstatic (Shared in Visual Basic)HexEscape

Supported by the .NET Compact Framework.

Converts a specified character into its hexadecimal equivalent.
public methodstatic (Shared in Visual Basic)HexUnescape

Supported by the .NET Compact Framework.

Converts a specified hexadecimal representation of a character to the character.
public methodInitializeLifetimeService (inherited from MarshalByRefObject) Obtains a lifetime service object to control the lifetime policy for this instance.
public methodstatic (Shared in Visual Basic)IsHexDigit

Supported by the .NET Compact Framework.

Determines whether a specified character is a valid hexadecimal digit.
public methodstatic (Shared in Visual Basic)IsHexEncoding

Supported by the .NET Compact Framework.

Determines whether a string is hexadecimal encoded.
public methodMakeRelative

Supported by the .NET Compact Framework.

Determines the difference between two Uri instances.
public methodToString

Supported by the .NET Compact Framework.

Overridden. Returns a canonical string representation for the specified Uri instance.

Protected Constructors

protected constructorUri Constructor Overloaded. Initializes a new instance of the Uri class.

Protected Methods

protected methodstatic (Shared in Visual Basic)EscapeString

Supported by the .NET Compact Framework.

Converts a string to its escaped representation.
protected methodFinalize (inherited from Object)

Supported by the .NET Compact Framework.

Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object)

Supported by the .NET Compact Framework.

Creates a shallow copy of the current Object.

See Also

Uri Class | System Namespace

Show:
© 2014 Microsoft