Partager via


InetAddresses.ParseNumericAddress(String) Method

Definition

Returns an InetAddress corresponding to the given numeric address (such as "192.168.0.1" or "2001:4860:800d::68").

[Android.Runtime.Register("parseNumericAddress", "(Ljava/lang/String;)Ljava/net/InetAddress;", "", ApiSince=29)]
public static Java.Net.InetAddress ParseNumericAddress (string address);
[<Android.Runtime.Register("parseNumericAddress", "(Ljava/lang/String;)Ljava/net/InetAddress;", "", ApiSince=29)>]
static member ParseNumericAddress : string -> Java.Net.InetAddress

Parameters

address
String

the address to parse, must be numeric.

Returns

an InetAddress instance corresponding to the address.

Attributes

Remarks

Returns an InetAddress corresponding to the given numeric address (such as "192.168.0.1" or "2001:4860:800d::68").

See #isNumericAddress(String) (String)} for a definition as to what constitutes a numeric address.

This method will never do a DNS lookup.

Java documentation for android.net.InetAddresses.parseNumericAddress(java.lang.String).

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