Url Class
Url class
Provides an object representation of a universal identifier (URL).
public class Url : DOMObject
Constructors
Name | Description |
---|
Url(string) | Initializes a new instance of the Url with the specified URL. |
Url(string, string) | Initializes a new instance of the Url with the specified URL and base URL. |
Properties
Name | Description |
---|
Hash { get; set; } | Gets or sets a string representation for the specified URL hash segment. |
Host { get; set; } | Gets or sets a string representation for the specified URL host. |
Hostname { get; set; } | Gets or sets a string representation for the specified URL hostname. |
Href { get; set; } | Gets or sets a serialized representation for the specified URL instance. |
Origin { get; } | Gets a string representation for the specified URL origin. |
Password { get; set; } | Gets or sets a string representation for the specified URL password. |
Pathname { get; set; } | Gets or sets a string representation for the specified URL path. |
Port { get; set; } | Gets or sets a string representation for the specified URL port. |
Protocol { get; set; } | Gets or sets a string representation for the specified URL schema. |
Search { get; set; } | Gets or sets a string representation for the specified URL search segment. |
SearchParams { get; } | Gets an associated IUrlSearchParams object. |
Username { get; set; } | Gets or sets a string representation for the specified URL username. |
Methods
Name | Description |
---|
CompareTo(Url, bool) | Determines whether the specified Url , is equal to this instance. |
override Equals(object) | Determines whether the specified Object, is equal to this instance. |
override GetHashCode() | Returns a hash code for this instance. |
virtual GetPlatformType() | This method is used to retrieve ECMAScript object Type. |
ToJson() | Returns a String that represents this instance. |
override ToString() | Returns a String that represents this instance. |
See Also