Table of Contents

Interface IUrlUtilities

Namespace
AngleSharp.Dom
Assembly
AngleSharp.dll

The URLUtils interface defines utility methods to work with URLs.

[DomName("URLUtils")]
[DomNoInterfaceObject]
public interface IUrlUtilities
Extension Methods

Properties

Hash

Gets or sets a '#' followed by the fragment identifier of the URL.

[DomName("hash")]
string Hash { get; set; }

Property Value

string

Host

Gets or sets the host, that is the hostname, a ':', and the port of the URL.

[DomName("host")]
string Host { get; set; }

Property Value

string

HostName

Gets or sets the domain of the URL.

[DomName("hostname")]
string HostName { get; set; }

Property Value

string

Href

Gets or sets the whole URL.

[DomName("href")]
string Href { get; set; }

Property Value

string

Origin

Gets the canonical form of the origin of the specific location.

[DomName("origin")]
string? Origin { get; }

Property Value

string

Password

Gets or sets the password specified before the domain name.

[DomName("password")]
string? Password { get; set; }

Property Value

string

PathName

Gets or sets an initial '/' followed by the path of the URL.

[DomName("pathname")]
string PathName { get; set; }

Property Value

string

Port

Gets or sets the port number of the URL.

[DomName("port")]
string Port { get; set; }

Property Value

string

Protocol

Gets or sets the protocol scheme of the URL, including the final ':'.

[DomName("protocol")]
string Protocol { get; set; }

Property Value

string

Gets or sets a '?' followed by the parameters of the URL.

[DomName("search")]
string Search { get; set; }

Property Value

string

UserName

Gets or sets the username specified before the domain name.

[DomName("username")]
string? UserName { get; set; }

Property Value

string