Skip to content

TryCreate Method ​

Definition ​

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

Overloads ​

NameDescription
bool TryCreate(string host, out DomainProfile profile)Attempts to create a profile for a hostname, domain name, or absolute URI using embedded registry data.
bool TryCreate(Uri uri, out DomainProfile profile)Attempts to create a profile for a URI host using embedded registry data.

bool TryCreate(string host, out DomainProfile profile) ​

csharp
bool TryCreate(string host, out DomainProfile profile)

Attempts to create a profile for a hostname, domain name, or absolute URI using embedded registry data.

Parameters ​

NameDescription
hostThe hostname, domain name, or absolute URI to evaluate.
profileWhen this method returns , contains the domain profile.

Returns ​

when a registrable domain can be determined; otherwise, .

bool TryCreate(Uri uri, out DomainProfile profile) ​

csharp
bool TryCreate(Uri uri, out DomainProfile profile)

Attempts to create a profile for a URI host using embedded registry data.

Parameters ​

NameDescription
profileWhen this method returns , contains the domain profile.
uriThe absolute URI whose host is evaluated.

Returns ​

when a registrable domain can be determined; otherwise, .