Skip to content

GetRegistrableDomain Method ​

Definition ​

  • Namespace: JASE.Network
  • Assembly: JASE.Network.dll

Overloads ​

NameDescription
string GetRegistrableDomain(string host)Returns the registrable domain for a hostname, or when one cannot be determined.
string GetRegistrableDomain(Uri uri)Returns the registrable domain for a URI host, or when one cannot be determined.

string GetRegistrableDomain(string host) ​

csharp
string GetRegistrableDomain(string host)

Returns the registrable domain for a hostname, or when one cannot be determined.

Parameters ​

NameDescription
hostThe hostname, domain name, or absolute URI to evaluate.

Returns ​

The registrable domain, or for invalid input or names without a registrable domain.

string GetRegistrableDomain(Uri uri) ​

csharp
string GetRegistrableDomain(Uri uri)

Returns the registrable domain for a URI host, or when one cannot be determined.

Parameters ​

NameDescription
uriThe absolute URI whose host is evaluated.

Returns ​

The registrable domain, or for invalid input or names without a registrable domain.