Url Class

Url class

Provides an object representation of a universal identifier (URL).

public class Url : DOMObject

Constructors

NameDescription
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

NameDescription
[getHash]
[setHash] Gets or sets a String representation for the specified URL hash segment.
[getHost]
[setHost] Gets or sets a String representation for the specified URL host.
[getHostname]
[setHostname] Gets or sets a String representation for the specified URL hostname.
[getHref]
[setHref] Gets or sets a serialized representation for the specified URL instance.
getOrigin Gets a String representation for the specified URL origin.
[getPassword]
[setPassword] Gets or sets a String representation for the specified URL password.
[getPathname]
[setPathname] Gets or sets a String representation for the specified URL path.
[getPort]
[setPort] Gets or sets a String representation for the specified URL port.
[getProtocol]
[setProtocol] Gets or sets a String representation for the specified URL schema.
[getSearch]
[setSearch] Gets or sets a String representation for the specified URL search segment.
getSearchParams Gets an associated IUrlSearchParams object.
[getUsername]
[setUsername] Gets or sets a String representation for the specified URL username.

Methods

NameDescription
equals(object)Determines whether the specified Object, is equal to this instance.
getHashCode()Returns a hash code for this instance.
getPlatformType()This method is used to retrieve the ECMAScript object .
toJson()Returns a String that represents this instance.
toString()Returns a String that represents this instance.

See Also