LumiSoft Net Help
GetDomainHosts Method (domain)
Namespaces ► LumiSoft.Net.SMTP.Client ► SMTP_Client ► GetDomainHosts(String)
Gets specified email domain SMTP hosts. Values are in descending priority order.
Declaration Syntax

C# | Visual Basic | Visual C++ | F#

    [ObsoleteAttribute("Use method Dns_Client.GetEmailHosts instead.")]
    public static string[] GetDomainHosts(
    	string domain
    )

    <ObsoleteAttribute("Use method Dns_Client.GetEmailHosts instead.")>
    Public Shared Function GetDomainHosts (
    	domain As String
    ) As String()

    public:
    [ObsoleteAttribute(L"Use method Dns_Client.GetEmailHosts instead.")]
    static array<String^>^ GetDomainHosts(
    	String^ domain
    )

    [<ObsoleteAttribute("Use method Dns_Client.GetEmailHosts instead.")>]
    static member GetDomainHosts :
            domain : string -> string[]

Parameters

domain (String)
  Domain name. This value can be email address too, then domain parsed automatically.

Return Value
array<String>[]()[][]
Returns specified email domain SMTP hosts.
Exceptions

Exception | Condition
--- | ---
ArgumentNullException | Is raised when domain is null.
ArgumentException | Is raised when any of the arguments has invalid value.
DNS_ClientException | Is raised when DNS query failure.

Assembly: LumiSoft.Net (Module: LumiSoft.Net.dll) Version: 4.5.5510.19119