The Url type exposes the following members.

Properties

  NameDescription
Authority
Gets the Domain Name System (DNS) host name or IP address and the port number for a server.
DnsSafeHost
Gets an unescaped host name that is safe to use for DNS resolution.
Encoding
Gets the encoding used for unescaping and escaping.
Fragment
Gets the escaped fragment.
Host
Gets the host component of this instance.
IsAbsoluteUri
Gets a value indicating whether this instance is absolute.
IsRelative
Gets or sets a value indicating whether this Url instance represents a relative Url.
LocalPath
Gets a local operating-system representation of a file name.
OriginalString
Gets or sets the original string.
Path
Gets the path. Will return a relative path if the path was relative to start with.
PathAndQuery
Gets the AbsolutePath and Query properties separated by a question mark (?).
Port
Gets the port number of this URL.
Query
Gets any query information included in the specified URL.
QueryCollection
Gets a parsed and decoded collection of query string parameters.
Scheme
Gets the scheme name for this URL.
Segments
Gets an array containing the path segments that make up the specified URL.
Split
Gets the different components of the Url
Uri
Gets the backing System.Uri.
UriInternal
Gets the internal System.Uri, which is always absolute possibly by prefixing the original relative Url with http://localhost .
UserEscaped
Indicates that the URI string was completely escaped before the Url instance was created.
UserInfo
Gets the user name, password, or other user-specific information associated with the specified URL.

See Also