InetAddressUtils.IsIPv6Address(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.