Skip to content

TryGetRegistrableDomain Method ​

Definition ​

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

Overloads ​

NameDescription
bool TryGetRegistrableDomain(string host, out string domain)Attempts to resolve the registrable domain for a hostname.
bool TryGetRegistrableDomain(Uri uri, out string domain)Attempts to resolve the registrable domain for a URI host.

bool TryGetRegistrableDomain(string host, out string domain) ​

csharp
bool TryGetRegistrableDomain(string host, out string domain)

Attempts to resolve the registrable domain for a hostname.

Parameters ​

NameDescription
domainWhen this method returns , contains the registrable domain.
hostThe hostname, domain name, or absolute URI to evaluate.

Returns ​

when a registrable domain can be determined; otherwise, .

bool TryGetRegistrableDomain(Uri uri, out string domain) ​

csharp
bool TryGetRegistrableDomain(Uri uri, out string domain)

Attempts to resolve the registrable domain for a URI host.

Parameters ​

NameDescription
domainWhen this method returns , contains the registrable domain.
uriThe absolute URI whose host is evaluated.

Returns ​

when a registrable domain can be determined; otherwise, .