Appearance
TryGetSuffix Method
Definition
- Namespace:
JASE.Network - Assembly:
JASE.Network.dll
Overloads
| Name | Description |
|---|---|
bool TryGetSuffix(string host, out string suffix) | Attempts to resolve the public suffix for a hostname. |
bool TryGetSuffix(Uri uri, out string suffix) | Attempts to resolve the public suffix for a URI host. |
bool TryGetSuffix(string host, out string suffix)
csharp
bool TryGetSuffix(string host, out string suffix)Attempts to resolve the public suffix for a hostname.
Parameters
| Name | Description |
|---|---|
host | The hostname, domain name, or absolute URI to evaluate. |
suffix | When this method returns , contains the public suffix. |
Returns
when a suffix can be determined; otherwise, .
bool TryGetSuffix(Uri uri, out string suffix)
csharp
bool TryGetSuffix(Uri uri, out string suffix)Attempts to resolve the public suffix for a URI host.
Parameters
| Name | Description |
|---|---|
suffix | When this method returns , contains the public suffix. |
uri | The absolute URI whose host is evaluated. |
Returns
when a suffix can be determined; otherwise, .