Skip to content

TryGetWhoisServer Method ​

Definition ​

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

Overloads ​

NameDescription
bool TryGetWhoisServer(DomainProfile profile, out WhoisServerMatch match)Attempts to resolve the WHOIS server from a domain profile using the embedded registry only.
bool TryGetWhoisServer(string domain, out WhoisServerMatch match)Attempts to resolve the WHOIS server for a domain using the embedded registry only.
bool TryGetWhoisServer(Uri uri, out WhoisServerMatch match)Attempts to resolve the WHOIS server for a URI host using the embedded registry only.

bool TryGetWhoisServer(DomainProfile profile, out WhoisServerMatch match) ​

csharp
bool TryGetWhoisServer(DomainProfile profile, out WhoisServerMatch match)

Attempts to resolve the WHOIS server from a domain profile using the embedded registry only.

Parameters ​

NameDescription
matchWhen this method returns , contains the server match details.
profileThe domain profile to resolve.

Returns ​

when the profile contains an embedded WHOIS server; otherwise, .

bool TryGetWhoisServer(string domain, out WhoisServerMatch match) ​

csharp
bool TryGetWhoisServer(string domain, out WhoisServerMatch match)

Attempts to resolve the WHOIS server for a domain using the embedded registry only.

Parameters ​

NameDescription
domainThe hostname, domain name, or absolute URI to resolve.
matchWhen this method returns , contains the server match details.

Returns ​

when a registry entry matches the domain; otherwise, .

Remarks ​

This method does not query DefaultIanaReferralServer. Use TryResolveWhoisServerAsync when a live IANA referral fallback is required for TLDs missing from the embedded registry.

bool TryGetWhoisServer(Uri uri, out WhoisServerMatch match) ​

csharp
bool TryGetWhoisServer(Uri uri, out WhoisServerMatch match)

Attempts to resolve the WHOIS server for a URI host using the embedded registry only.

Parameters ​

NameDescription
matchWhen this method returns , contains the server match details.
uriThe absolute URI whose host is resolved.

Returns ​

when a registry entry matches the host; otherwise, .