LumiSoft Net Help
GetHostAddresses Method (hostNameOrIP)
Namespaces ► LumiSoft.Net.DNS.Client ► Dns_Client ► GetHostAddresses(String)
Gets host IPv4 and IPv6 addresses.
Declaration Syntax

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

    public IPAddress[] GetHostAddresses(
    	string hostNameOrIP
    )

    Public Function GetHostAddresses (
    	hostNameOrIP As String
    ) As IPAddress()

    public:
    array<IPAddress^>^ GetHostAddresses(
    	String^ hostNameOrIP
    )

    member GetHostAddresses :
            hostNameOrIP : string -> IPAddress[]

Parameters

hostNameOrIP (String)
  Host name or IP address.

Return Value
array<IPAddress>[]()[][]
Returns host IPv4 and IPv6 addresses.
Exceptions

Exception | Condition
--- | ---
ObjectDisposedException | Is raised when this object is disposed and and this method is accessed.
ArgumentNullException | Is raised when hostNameOrIP is null reference.
DNS_ClientException | Is raised when DNS server returns error.
IOException | Is raised when IO reletaed error happens.

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