Language

InetAddressUtils.IsIPv4Address(String) Method

Definition

Checks whether the text matches four decimal IPv4 components.

[Android.Runtime.Register("isIPv4Address", "(Ljava/lang/String;)Z", "")]
public static bool IsIPv4Address(string? input);
[<Android.Runtime.Register("isIPv4Address", "(Ljava/lang/String;)Z", "")>]
static member IsIPv4Address : string -> bool

Parameters

input
String

The text to check against the dotted-decimal IPv4 pattern.

Returns

true if the complete input matches four dot-separated decimal components in the range 0 through 255; otherwise, false.

Attributes

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