Appearance
GetRegistrableDomain Method
Definition
- Namespace:
JASE.Network - Assembly:
JASE.Network.dll
Overloads
| Name | Description |
|---|---|
string GetRegistrableDomain(string host) | Returns the registrable domain for a hostname, or when one cannot be determined. |
string GetRegistrableDomain(Uri uri) | Returns the registrable domain for a URI host, or when one cannot be determined. |
string GetRegistrableDomain(string host)
csharp
string GetRegistrableDomain(string host)Returns the registrable domain for a hostname, or when one cannot be determined.
Parameters
| Name | Description |
|---|---|
host | The hostname, domain name, or absolute URI to evaluate. |
Returns
The registrable domain, or for invalid input or names without a registrable domain.
string GetRegistrableDomain(Uri uri)
csharp
string GetRegistrableDomain(Uri uri)Returns the registrable domain for a URI host, or when one cannot be determined.
Parameters
| Name | Description |
|---|---|
uri | The absolute URI whose host is evaluated. |
Returns
The registrable domain, or for invalid input or names without a registrable domain.