Secure Exchanges SDK Documentation
Search Results for

    Show / Hide Table of Contents

    Class DomainHelper

    This class is an Helper for Domain validation. Usefull to apply rules on domaines rules organisation

    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: SecureExchangesSDK.Helpers
    Assembly: SecureExchangesSDK.dll
    Syntax
    public static class DomainHelper

    Properties

    EmailDomains

    Declaration
    public static EmailDomains EmailDomains { get; }
    Property Value
    Type Description
    EmailDomains

    Methods

    GetEmailDomain(string)

    Declaration
    public static string GetEmailDomain(string emailAddress)
    Parameters
    Type Name Description
    string emailAddress
    Returns
    Type Description
    string

    GetSHADomain(string)

    Declaration
    public static string GetSHADomain(string domain)
    Parameters
    Type Name Description
    string domain
    Returns
    Type Description
    string

    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
    Type Description
    bool
    In this article
    Back to top Secure Exchanges Inc. - Documentation