Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
System Namespace
Uri Class
 Uri Members

  Switch on low bandwidth view
Members FilterMembers Filter
Frameworks FilterFrameworks Filter
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
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 methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkUriOverloaded. Initializes a new instance of the Uri class.
Top
  NameDescription
Protected methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkCanonicalizeInfrastructure. Obsolete. Converts the internally stored URI to canonical form.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkCheckHostNameDetermines whether the specified host name is a valid DNS name.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkCheckSchemeNameDetermines whether the specified scheme name is valid.
Protected methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkCheckSecurityInfrastructure. Obsolete. Calling this method has no effect.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkCompareCompares the specified parts of two URIs using the specified comparison rules.
Public methodCreateObjRefCreates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkEqualsCompares two Uri instances for equality. (Overrides Object..::.Equals(Object).)
Protected methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkEscapeInfrastructure. Obsolete. Converts any unsafe or reserved characters in the path component to their hexadecimal character representations.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkEscapeDataStringConverts a string to its escaped representation.
Protected methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkEscapeString Obsolete. Converts a string to its escaped representation.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkEscapeUriStringConverts a URI string to its escaped representation.
Protected methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkFinalize Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkFromHexGets the decimal value of a hexadecimal digit.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkGetComponentsGets the specified components of the current instance using the specified escaping for special characters.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkGetHashCodeGets the hash code for the URI. (Overrides Object..::.GetHashCode()()().)
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkGetLeftPartGets the specified portion of a Uri instance.
Public methodGetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected methodGetObjectDataReturns the data needed to serialize the current instance.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkGetType Gets the Type of the current instance. (Inherited from Object.)
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkHexEscapeConverts a specified character into its hexadecimal equivalent.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkHexUnescapeConverts a specified hexadecimal representation of a character to the character.
Public methodInitializeLifetimeServiceObtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIsBadFileSystemCharacterInfrastructure. Obsolete. Gets whether a character is invalid in a file system name.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIsBaseOfDetermines whether the current Uri instance is a base of the specified Uri instance.
Protected methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIsExcludedCharacterInfrastructure. Obsolete. Gets whether the specified character should be escaped.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIsHexDigitDetermines whether a specified character is a valid hexadecimal digit.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIsHexEncodingDetermines whether a character in a string is hexadecimal encoded.
Protected methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIsReservedCharacterInfrastructure. Obsolete. Gets whether the specified character is a reserved character.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIsWellFormedOriginalStringIndicates whether the string used to construct this Uri was well-formed and is not required to be further escaped.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIsWellFormedUriStringIndicates 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 methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkMakeRelative Obsolete. Determines the difference between two Uri instances.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkMakeRelativeUriDetermines the difference between two Uri instances.
Protected methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkMemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkParseInfrastructure. Obsolete. Parses the URI of the current instance to ensure it contains all the parts required for a valid URI.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkToStringGets a canonical string representation for the specified Uri instance. (Overrides Object..::.ToString()()().)
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkTryCreateOverloaded. Creates a new Uri. Does not throw an exception if the Uri cannot be created.
Protected methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkUnescapeInfrastructure. Obsolete. Converts the specified string by replacing any escape sequences with their unescaped representation.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkUnescapeDataStringConverts a string to its unescaped representation.
Top
  NameDescription
Public operatorStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkEqualityDetermines whether two Uri instances have the same value.
Public operatorStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkInequalityDetermines whether two Uri instances do not have the same value.
Top
  NameDescription
Public fieldStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkSchemeDelimiterSpecifies the characters that separate the communication protocol scheme from the address portion of the URI. This field is read-only.
Public fieldStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkUriSchemeFileSpecifies that the URI is a pointer to a file. This field is read-only.
Public fieldStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkUriSchemeFtpSpecifies that the URI is accessed through the File Transfer Protocol (FTP). This field is read-only.
Public fieldStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkUriSchemeGopherSpecifies that the URI is accessed through the Gopher protocol. This field is read-only.
Public fieldStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkUriSchemeHttpSpecifies that the URI is accessed through the Hypertext Transfer Protocol (HTTP). This field is read-only.
Public fieldStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkUriSchemeHttpsSpecifies that the URI is accessed through the Secure Hypertext Transfer Protocol (HTTPS). This field is read-only.
Public fieldStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkUriSchemeMailtoSpecifies that the URI is an e-mail address and is accessed through the Simple Mail Transport Protocol (SMTP). This field is read-only.
Public fieldStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkUriSchemeNetPipeSpecifies that the URI is accessed through the NetPipe scheme of the "Indigo" system. This field is read-only.
Public fieldStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkUriSchemeNetTcpSpecifies that the URI is accessed through the NetTcp scheme of the "Indigo" system. This field is read-only.
Public fieldStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkUriSchemeNewsSpecifies 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 memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkUriSchemeNntpSpecifies 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 propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkAbsolutePathGets the absolute path of the URI.
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkAbsoluteUriGets the absolute URI.
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkAuthorityGets the Domain Name System (DNS) host name or IP address and the port number for a server.
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkDnsSafeHostGets an unescaped host name that is safe to use for DNS resolution.
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkFragmentGets the escaped URI fragment.
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkHostGets the host component of this instance.
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkHostNameTypeGets the type of the host name specified in the URI.
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkIsAbsoluteUriGets whether the Uri instance is absolute.
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkIsDefaultPortGets whether the port value of the URI is the default for this scheme.
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkIsFileGets a value indicating whether the specified Uri is a file URI.
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkIsLoopbackGets whether the specified Uri references the local host.
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkIsUncGets whether the specified Uri is a universal naming convention (UNC) path.
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkLocalPathGets a local operating-system representation of a file name.
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkOriginalStringGets the original URI string that was passed to the Uri constructor.
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkPathAndQueryGets the AbsolutePath and Query properties separated by a question mark (?).
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkPortGets the port number of this URI.
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkQueryGets any query information included in the specified URI.
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkSchemeGets the scheme name for this URI.
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkSegmentsGets an array containing the path segments that make up the specified URI.
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkUserEscapedIndicates that the URI string was completely escaped before the Uri instance was created.
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkUserInfoGets the user name, password, or other user-specific information associated with the specified URI.
Top
  NameDescription
Explicit interface implemetationPrivate methodISerializable..::.GetObjectDataReturns the data needed to serialize the current instance.
Top
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker