Share via


MimeRecipient.IsEmailValid method

The IsEmailValid(String) method indicates whether the specified string is a valid email address for the MimeRecipient object.

Namespace:  Microsoft.Exchange.Data.Mime
Assembly:  Microsoft.Exchange.Data.Common (in Microsoft.Exchange.Data.Common.dll)

Syntax

'Declaration
Public Shared Function IsEmailValid ( _
    email As String _
) As Boolean
'Usage
Dim email As String
Dim returnValue As Boolean

returnValue = MimeRecipient.IsEmailValid(email)
public static bool IsEmailValid(
    string email
)

Parameters

Return value

Type: System.Boolean
The IsEmailValid(String) method returns true if email is a valid email address; otherwise the method returns false.

See also

Reference

MimeRecipient class

MimeRecipient members

Microsoft.Exchange.Data.Mime namespace