Url |
public class UrlParser
The UrlParser type exposes the following members.
| Name | Description | |
|---|---|---|
| UrlParser | URL parser default constructor. Sets Protocol and port by default. | |
| UrlParser(String) | URL parser constructor with URL parameter that parses the input URL. | |
| UrlParser(UrlParser, String) | URL parser constructor with the base and the relative URL |
| Name | Description | |
|---|---|---|
| Fragment | The Fragment property gets any text following a fragment marker (#) in the URL, including the fragment marker itself. | |
| Hostname | Get the HostName. | |
| HostnameAndPort | Combined Hostname and Port of the URL ("www.website.com:81"). The Port and the separating colon will only be included if the Port value is different from the default port for the specified protocol. | |
| HostnameType | Get Hostname type | |
| IsAbsoluteUri | The AbsoluteUrl property includes the entire URL stored in the Url instance, including all fragments and query strings. | |
| IsDefaultPort | Gets whether the port value of the URL is the default for this scheme. | |
| IsFile | Gets a value indicating whether the specified Url is a file URL. | |
| IsLoopback | Gets whether the specified Url references the local host. | |
| IsUnc | The IsUnc property is true if the specified Url instance is a UNC path (such as \\server\folder or file://server/folder). This property always returns true if the URL has the file:// scheme and specifies a host component. | |
| Params | Parameters portion of the URL ("?query=something"). | |
| Path | Path portion of the URL ("/test.asp) | |
| PathAndParams | Combined Path and Parameters of the URL ("test.pas?query=something"). The Parameters and the separating questionmark will only be included if the Params value is assigned. | |
| Port | Port portion of the URL ("81"). | |
| Protocol | Protocol portion of the URL ("http"). | |
| Url | The full URL. Only the relevant parts of the URL will be included; the Port will be omitted if it is equal to the default for the specified Protocol, Path and Params will be omitted if they are not assigned. | |
| Url_Orig | The full URL as provided by the user |
| Name | Description | |
|---|---|---|
| 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) | |
| 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) | |
| Parse(String) | Parses the URL and sets the proper definitions for all aspects of the URL | |
| Parse(UrlParser, String) | Parses the URL and sets the proper definitions for all aspects of the URL base plus the relative URL | |
| ToString |
Returns the URL as a string.
(Overrides ObjectToString) |