InetAddressUtils.IsIPv4Address(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 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.