Java.Net.InetAddress.GetByName Method
Returns the address of a host according to the given host string name host.

Syntax

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

Parameters

host
the hostName to be resolved to an address or null.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Net.UnknownHostExceptionif the address lookup fails.

Remarks

Returns the address of a host according to the given host string name host. The host string may be either a machine name or a dotted string IP address. If the latter, the hostName field is determined upon demand. host can be null which means that an address of the loopback interface 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