Edit

Share via


StringExtensions.IsPhoneNumber(String) Method

Definition

Determines whether a string is a valid phone number.

public static bool IsPhoneNumber (this string str);
static member IsPhoneNumber : string -> bool
<Extension()>
Public Function IsPhoneNumber (str As String) As Boolean

Parameters

str
String

The string to test.

Returns

true for a valid phone number; otherwise, false.

Applies to