Class Ipv4
Provides validation for IPv4 addresses.
public static class Ipv4
- Inheritance
-
Ipv4
- Inherited Members
Methods
TryValidate(ReadOnlySpan<char>, out ValidationResult<Ipv4Value>)
Attempts to validate the supplied input as an IPv4 address.
public static bool TryValidate(ReadOnlySpan<char> input, out ValidationResult<Ipv4Value> result)
Parameters
inputReadOnlySpan<char>Candidate address to validate.
resultValidationResult<Ipv4Value>The validation outcome including the parsed value when valid.
Returns
- bool
trueif validation succeeded; otherwise,false.