Uri Properties

The Uri type exposes the following members.

  NameDescription
Public property AbsolutePath Gets the absolute path of the URI.
Public property AbsoluteUri Gets the absolute URI.
Public property Authority Gets the Domain Name System (DNS) host name or IP address and the port number for a server.
Public property DnsSafeHost Gets an unescaped host name that is safe to use for DNS resolution.
Public property Fragment Gets the escaped URI fragment.
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 whether the Uri instance is absolute.
Public property IsDefaultPort Gets whether the port value of the URI is the default for this scheme.
Public property IsFile Gets a value indicating whether the specified Uri is a file URI.
Public property IsLoopback Gets whether the specified Uri references the local host.
Public property IsUnc Gets whether the specified Uri is a universal naming convention (UNC) path.
Public property LocalPath Gets a local operating-system representation of a file name.
Public property OriginalString Gets the original URI string that was passed to the Uri constructor.
Public property PathAndQuery Gets the AbsolutePath and Query properties separated by a question mark (?).
Public property Port Gets the port number of this URI.
Public property Query Gets any query information included in the specified URI.
Public property Scheme Gets the scheme name for this URI.
Public property Segments Gets an array containing the path segments that make up the specified URI.
Public property UserEscaped Indicates that the URI string was completely escaped before the Uri instance was created.
Public property UserInfo Gets the user name, password, or other user-specific information associated with the specified URI.
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft