Show / Hide Table of Contents

Class DomainHelper

Class used to provide re-usable ways to process email-addresses and web-site adddresses for further analysis.

Inheritance
object
DomainHelper
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.Util
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
Type Description
Regex

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
Type Description
string

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
Type Description
string

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
Type Description
string

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
Type Description
string

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
Type Description
string
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top