Uri Members

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

Public Constructors

Name Description
Public Method Uri Initializes a new instance of the Uri class with the specified URI.

Public Properties

Name Description
Public Property AbsolutePath Gets a local operating-system representation of a file name.
Public Property AbsoluteUri Gets a string containing the absolute URI or entire URI for this instance.
Public Property Host Gets the host component of this instance.
Public Property HostNameType Gets the type of the host name specified in the URI.
Public Property IsAbsoluteUri Gets a Boolean value that indicates whether the URI is absolute.
Public Property IsDefaultPort Gets a Boolean value indicating whether the port value of the URI is the default for this scheme.
Public Property IsUnc Gets a Boolean value indicating whether the specified URI is a universal naming convention (UNC) path.
Public Property Port Gets the port number of this URI.
Public Property Scheme Gets the scheme name for this URI.

Public Methods

Name Description
Public Method Equals (Inherited from Object.)
Public Method GetHashCode (Inherited from Object.)
Public Method GetType (Inherited from Object.)
Public Method Static IsWellFormedUriString Indicates whether the string is well-formed by attempting to construct a URI with the string.
Public Method ReferenceEquals (Inherited from Object.)
Public Method ToString (Inherited from Object.)

Protected Methods

Name Description
Protected Method Finalize (Inherited from Object.)
Protected Method MemberwiseClone (Inherited from Object.)

See Also

Reference

Uri Class
System.Ext Namespace