Skip to content

IsWhoisTld Method ​

Definition ​

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

Overloads ​

NameDescription
bool IsWhoisTld(DomainProfile profile)Returns when the profile IANA root-zone TLD has an entry in the embedded WHOIS server registry.
bool IsWhoisTld(string domain)Returns when the domain's IANA root-zone TLD has an entry in the embedded WHOIS server registry.
bool IsWhoisTld(Uri uri)Returns when the URI host's IANA root-zone TLD has an entry in the embedded WHOIS server registry.

bool IsWhoisTld(DomainProfile profile) ​

csharp
bool IsWhoisTld(DomainProfile profile)

Returns when the profile IANA root-zone TLD has an entry in the embedded WHOIS server registry.

Parameters ​

NameDescription
profileThe domain profile to check.

Returns ​

when a registry entry matches the profile; otherwise, .

bool IsWhoisTld(string domain) ​

csharp
bool IsWhoisTld(string domain)

Returns when the domain's IANA root-zone TLD has an entry in the embedded WHOIS server registry.

Parameters ​

NameDescription
domainThe hostname, domain name, or absolute URI to check.

Returns ​

when a registry entry matches the domain; otherwise, .

Remarks ​

Invalid or non-hostname input returns rather than throwing. Use ResolveWhoisServerReferralAsync when a live IANA referral lookup is required for TLDs not present in the embedded registry.

bool IsWhoisTld(Uri uri) ​

csharp
bool IsWhoisTld(Uri uri)

Returns when the URI host's IANA root-zone TLD has an entry in the embedded WHOIS server registry.

Parameters ​

NameDescription
uriThe absolute URI whose host is checked.

Returns ​

when a registry entry matches the host; otherwise, .