Compartir a través de


Network.GetByName(String) Method

Definition

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

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

Parameters

host
String

the hostName to be resolved to an address or null.

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