Appearance
TryCreate Method
Definition
- Namespace:
JASE.Network - Assembly:
JASE.Network.dll
Overloads
| Name | Description |
|---|---|
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
| Name | Description |
|---|---|
host | The hostname, domain name, or absolute URI to evaluate. |
profile | When 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
| Name | Description |
|---|---|
profile | When this method returns , contains the domain profile. |
uri | The absolute URI whose host is evaluated. |
Returns
when a registrable domain can be determined; otherwise, .