Language

InetAddressUtils.IsIPv6Address(String) Method

Definition

Checks whether the text matches either supported IPv6 pattern.

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

Parameters

input
String

The text to check against the full and compressed IPv6 patterns.

Returns

true if the input matches the full eight-group pattern or the hexadecimal pattern containing a double colon; 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