Share via


IUserExtension2.ValidateEmailAddress Method (String, String, String)

 

Checks the user's email address for characters that are not valid.

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

Syntax

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

Parameters

  • errorSummary
    Type: System.String

    If the email address is not valid, the string contains the summary of the error. If the address is valid, the parameter is NULL.

  • errorDetail
    Type: System.String

    If the address is not valid, the parameter contains the detail of the error. If the email address is valid, the parameter is NULL.

Return Value

Type: System.Boolean

Returns Boolean. If the email address is valid, the method returns True; otherwise, the method returns False.

Remarks

This is only available on Small Business Server 2011 Essentials.

See Also

IUserExtension2 Interface
Microsoft.WindowsServerSolutions.Common Namespace

Return to top