Url class
Url class
Provides an object representation of a universal identifier (URL).
The Url type exposes the following members:
Constructors
| Constructor | Description |
|---|---|
| init | Initializes a new instance of the Url with the specified URL. |
| init | Initializes a new instance of the Url with the specified URLand base URL. |
Properties
| Property | Description |
|---|---|
| origin | Gets a string representation for the specified URL origin. |
| username | Gets or sets a string representation for the specified URL username. |
| password | Gets or sets a string representation for the specified URL password. |
| protocol | Gets or sets a string representation for the specified URL schema. |
| host | Gets or sets a string representation for the specified URL host. |
| hostname | Gets or sets a string representation for the specified URL hostname. |
| port | Gets or sets a string representation for the specified URL port. |
| pathname | Gets or sets a string representation for the specified URL path. |
| search | Gets or sets a string representation for the specified URL search segment. |
| hash | Gets or sets a string representation for the specified URL hash segment. |
| search_params | Gets an associated IUrlSearchParams object. |
| href | Gets or sets a serialized representation for the specified URL instance. |
Methods
| Method | Description |
|---|---|
| get_platform_type | This method is used to retrieve the ECMAScript object Type. |
| to_json | Returns a String that represents this instance. |
See Also
- module
aspose.html - class
DOMObject - class
IUrlSearchParams - class
Url