Class DomainHelper
This class is an Helper for Domain validation. Usefull to apply rules on domaines rules organisation
Assembly: SecureExchangesSDK.dll
Syntax
public static class DomainHelper
Properties
EmailDomains
Declaration
public static EmailDomains EmailDomains { get; }
Property Value
Methods
GetEmailDomain(string)
Declaration
public static string GetEmailDomain(string emailAddress)
Parameters
| Type |
Name |
Description |
| string |
emailAddress |
|
Returns
GetSHADomain(string)
Declaration
public static string GetSHADomain(string domain)
Parameters
| Type |
Name |
Description |
| string |
domain |
|
Returns
IsNotDisposableDomain(string)
Validates if the domain does not belong to disposable domains. The check is case-insensitive.
Declaration
public static bool IsNotDisposableDomain(string domain)
Parameters
| Type |
Name |
Description |
| string |
domain |
The domain to be validated.
|
Returns
| Type |
Description |
| bool |
True if the domain is not in disposable domains, False otherwise.
|
IsNotSEReservedDomain(string)
Validates if the domain does not belong to SE reserved domains. The check is case-insensitive.
Declaration
public static bool IsNotSEReservedDomain(string domain)
Parameters
| Type |
Name |
Description |
| string |
domain |
The domain to be validated.
|
Returns
| Type |
Description |
| bool |
True if the domain is not in SE reserved domains, False otherwise.
|
IsPublicDomain(string)
Determines if a domain is seen to be public. The check is case-insensitive.
Declaration
public static bool IsPublicDomain(string domain)
Parameters
| Type |
Name |
Description |
| string |
domain |
The domain to be validated.
|
Returns
| Type |
Description |
| bool |
True if the domain is in public domains, False otherwise.
|
IsValidDomain(string)
Declaration
public static bool IsValidDomain(string domain)
Parameters
| Type |
Name |
Description |
| string |
domain |
|
Returns