Appearance
TryGetRegistrableDomain Method
Definition
- Namespace:
JASE.Network - Assembly:
JASE.Network.dll
Overloads
| Name | Description |
|---|---|
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
| Name | Description |
|---|---|
domain | When this method returns , contains the registrable domain. |
host | The 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
| Name | Description |
|---|---|
domain | When this method returns , contains the registrable domain. |
uri | The absolute URI whose host is evaluated. |
Returns
when a registrable domain can be determined; otherwise, .