Skip to content

GetSuffix Method ​

Definition ​

  • Namespace: JASE.Network
  • Assembly: JASE.Network.dll

Overloads ​

NameDescription
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 ​

NameDescription
hostThe 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 ​

NameDescription
uriThe absolute URI whose host is evaluated.

Returns ​

The public suffix, or for invalid input.