Partager via


IMailboxExtension.ValidateEmail Method (String, String)

 

Validates whether an email address is valid.

Namespace:   Microsoft.WindowsServerSolutions.Common
Assembly:  MiscUtil (in MiscUtil.dll)

Syntax

bool ValidateEmail(
    string email,
    out string errorDetail
)
bool ValidateEmail(
    String^ email,
    [OutAttribute] String^% errorDetail
)
Function ValidateEmail (
    email As String,
    <OutAttribute> ByRef errorDetail As String
) As Boolean

Parameters

  • email
    Type: System.String

    A reference to the email address to validate.

  • errorDetail
    Type: System.String

    When this method returns, contains the details of any error that occurs. If the email address is valid, the parameter contains a null value.

Return Value

Type: System.Boolean

A Boolean: true if the email address is valid; otherwise, false.

See Also

IMailboxExtension Interface
Microsoft.WindowsServerSolutions.Common Namespace

Return to top