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