Java.Net.InetAddress.GetAllByName Method
Gets all IP addresses associated with the given host identified by name or literal IP address.

Syntax

[Android.Runtime.Register("getAllByName", "(Ljava/lang/String;)[Ljava/net/InetAddress;", "")]
public static InetAddress[] GetAllByName (string host)

Parameters

host
the hostname or literal IP string to be resolved.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Net.UnknownHostExceptionif the address lookup fails.

Remarks

Gets all IP addresses associated with the given host identified by name or literal IP address. The IP address is resolved by the configured name service. If the host name is empty or null an UnknownHostException is thrown. If the host name is a literal IP address string an array with the corresponding single InetAddress is returned.

[Android Documentation]

Requirements

Namespace: Java.Net
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1