StringExtensions.IsEmail(String) Method

Definition

Determines whether a string is a valid email address.

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

Parameters

str
String

The string to test.

Returns

true for a valid email address; otherwise, false.

Applies to