Class DomainHelper
Class used to provide re-usable ways to process email-addresses and web-site adddresses
for further analysis.
Assembly: SoCore.dll
Syntax
public static class DomainHelper
Fields
EmailValidationRegex
Class used to provide re-usable ways to process email-addresses and web-site adddresses
for further analysis.
Declaration
public static readonly Regex EmailValidationRegex
Field Value
Methods
GetEmailDomain(string)
Class used to provide re-usable ways to process email-addresses and web-site adddresses
for further analysis.
Declaration
public static string GetEmailDomain(string emailAddress)
Parameters
Type |
Name |
Description |
string |
emailAddress |
|
Returns
GetPrimaryEmailDomainPart(string)
Return the primary domain-part of the email-address without any TLD suffixes
or subdomain prefixes.
I.e. "account@rnd.superoffice.co.uk" should simply resolve to "superoffice".
Declaration
public static string GetPrimaryEmailDomainPart(string emailAddress)
Parameters
Type |
Name |
Description |
string |
emailAddress |
|
Returns
GetPrimaryEmailDomainPartWithSubdomains(string)
Return the primary domain-part of the email-address without any TLD suffixes
but preserve subdomain prefixes.
I.e. "account@rnd.superoffice.co.uk" should simply resolve to "rnd.superoffice".
Declaration
public static string GetPrimaryEmailDomainPartWithSubdomains(string emailAddress)
Parameters
Type |
Name |
Description |
string |
emailAddress |
|
Returns
GetPrimaryWebsiteDomainPart(string)
Class used to provide re-usable ways to process email-addresses and web-site adddresses
for further analysis.
Declaration
public static string GetPrimaryWebsiteDomainPart(string website)
Parameters
Type |
Name |
Description |
string |
website |
|
Returns
GetWebSiteDomain(string)
Class used to provide re-usable ways to process email-addresses and web-site adddresses
for further analysis.
Declaration
public static string GetWebSiteDomain(string website)
Parameters
Type |
Name |
Description |
string |
website |
|
Returns