Edit

Share via


IPAddress.IsValid(ReadOnlySpan<Char>) Method

Definition

Determines whether the provided span contains a valid IPAddress.

public:
 static bool IsValid(ReadOnlySpan<char> ipSpan);
public static bool IsValid(ReadOnlySpan<char> ipSpan);
static member IsValid : ReadOnlySpan<char> -> bool
Public Shared Function IsValid (ipSpan As ReadOnlySpan(Of Char)) As Boolean

Parameters

ipSpan
ReadOnlySpan<Char>

The text to parse.

Returns

true if ipSpan contains a valid IP address; otherwise, false.

Applies to