Share via


Network.GetAllByName(String) Method

Definition

Operates the same as InetAddress.getAllByName except that host resolution is done on this network.

[Android.Runtime.Register("getAllByName", "(Ljava/lang/String;)[Ljava/net/InetAddress;", "GetGetAllByName_Ljava_lang_String_Handler")]
public virtual Java.Net.InetAddress[]? GetAllByName (string? host);
[<Android.Runtime.Register("getAllByName", "(Ljava/lang/String;)[Ljava/net/InetAddress;", "GetGetAllByName_Ljava_lang_String_Handler")>]
abstract member GetAllByName : string -> Java.Net.InetAddress[]
override this.GetAllByName : string -> Java.Net.InetAddress[]

Parameters

host
String

the hostname or literal IP string to be resolved.

Returns

Attributes

Exceptions

if the address lookup fails.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to