Appearance
TryGetWhoisServer Method
Definition
- Namespace:
JASE.Network - Assembly:
JASE.Network.dll
Overloads
| Name | Description |
|---|---|
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
| Name | Description |
|---|---|
match | When this method returns , contains the server match details. |
profile | The 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
| Name | Description |
|---|---|
domain | The hostname, domain name, or absolute URI to resolve. |
match | When 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
| Name | Description |
|---|---|
match | When this method returns , contains the server match details. |
uri | The absolute URI whose host is resolved. |
Returns
when a registry entry matches the host; otherwise, .