The Url type exposes the following members.
Back to Top
Back to Top
Back to Top
Constructors
| Name | Description | |
|---|---|---|
| Url(String) |
Initialises a new instance of the Url class, from the specified urlText.
| |
| Url(IntPtr, Boolean) |
For internal use only. Of no interest to the user.
| |
| Url(Protocol, IpEndPoint) |
Initialises a new instance of the Url class, with the specified protocol and ipEndPoint (host/port).
| |
| Url(Protocol, String) |
Initialises a new instance of the Url class, with the specified protocol and host.
| |
| Url(Protocol, IpEndPoint, String) |
Initialises a new instance of the Url class, with the specified protocol, ipEndPoint (host/port) and path.
| |
| Url(Protocol, String, String) |
Initialises a new instance of the Url class, with the specified protocol, host and path.
| |
| Url(Url, String, Boolean) |
For internal use only. Of no interest to the user.
| |
| Url(Protocol, IpEndPoint, String, QueryData) |
Initialises a new instance of the Url class, with the specified protocol, ipEndPoint (host/port), path and QueryData object.
| |
| Url(Protocol, IpEndPoint, String, String) |
Initialises a new instance of the Url class, with the specified protocol, ipEndPoint (host/port), path and queryText string.
| |
| Url(Protocol, IpEndPoint, String, QueryData, String) |
Initialises a new instance of the Url class, with the specified protocol, ipEndPoint (host/port), path and QueryData object.
The queryData object will be percent-encoded using the supplied list of unsafeCharacters.
|
Methods
| Name | Description | |
|---|---|---|
| AppendPath |
Initialises a new instance of the Url class using the attributes of this Url,
but with the specified path appended to the existing path.
| |
| Dispose | Releases all resources used by the Url | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| getCPtr |
For internal use only. Of no interest to the user.
| |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| ToString |
Returns a string representation of this Url.
(Overrides Object ToString .) | |
| ToString(Boolean) |
Returns a string representation of this Url, specifying whether to
percent-encode the path.
| |
| ToString(Boolean, Boolean) |
Returns a string representation of this Url, specifying whether to
percent-encode the path and include the port component of the URL if it
is a standard port.
| |
| WithCredentials |
Initialises a new instance of the Url class using the attributes of this Url,
but with the specified user and password (replacing the existing credentials if present).
| |
| WithPath |
Initialises a new instance of the Url class using the attributes of this Url,
but with the specified path (replacing the existing path if present).
| |
| WithPort |
Initialises a new instance of the Url class using the attributes of this Url,
but with the specified port (replacing the existing port if present).
| |
| WithQuery(String) |
Initialises a new instance of the Url class using the attributes of this Url,
but with the specified queryText string (replacing the existing query data if present).
| |
| WithQuery(Form) |
Initialises a new instance of the Url class using the attributes of this Url,
but with query data from the specified Form object (replacing the existing query data if present).
| |
| WithQuery(QueryData) |
Initialises a new instance of the Url class using the attributes of this Url,
but with the specified QueryData object (replacing the existing query data if present).
| |
| WithQuery(Form, String) |
Initialises a new instance of the Url class using the attributes of this Url,
but with query data from the specified Form object
percent-encoded using the supplied list of unsafeCharacters
(replacing the existing query data if present).
| |
| WithQuery(QueryData, String) |
Initialises a new instance of the Url class using the attributes of this Url,
but with the specified QueryData object
percent-encoded using the supplied list of unsafeCharacters
(replacing the existing query data if present).
| |
| WithReference |
Initialises a new instance of the Url class using the attributes of this Url,
but with the specified reference (replacing the existing reference,
also known as the fragment ID, if present).
|
Properties
| Name | Description | |
|---|---|---|
| DirectoryPath |
Gets the directory components of the path in this Url, excluding the filename.
| |
| EncodedPathAndQuery |
Gets the section of the URL used in an HTTP request.
| |
| FileName |
Gets the name of the file at the end of the path in this Url.
| |
| IpEndPoint |
Gets the IpEndPoint pointed to by this Url.
| |
| IsRelativePath |
Gets a value that indicates whether the return value of Path doesn't begin with /.
| |
| IsStandardPortForProtocol |
Gets a value that indicates whether a standard port is being used.
| |
| Password |
Gets the password specified in this Url.
| |
| Path |
Gets the path component of this Url,
excluding the first / after the hostname.
| |
| Protocol |
Gets the Protocol used for this Url. This appears before the :// at the
start of a URL, and is also known as the scheme.
| |
| Query |
Gets the percent-encoded query data section of this Url.
| |
| QueryData |
Get a QueryData object representing the query data section of this Url.
| |
| Reference |
Gets the reference (also known as the fragment ID) of this Url.
| |
| User |
Gets the username specified in this Url.
|
See Also