ExtendedMembershipProvider.ConfirmAccount Method (String, String)

Activates a pending membership account for the specified user.

Namespace:  WebMatrix.WebData
Assembly:  WebMatrix.WebData (in WebMatrix.WebData.dll)

Syntax

'Declaration
Public MustOverride Function ConfirmAccount ( _
    userName As String, _
    accountConfirmationToken As String _
) As Boolean
'Usage
Dim instance As ExtendedMembershipProvider 
Dim userName As String 
Dim accountConfirmationToken As String 
Dim returnValue As Boolean 

returnValue = instance.ConfirmAccount(userName, _
    accountConfirmationToken)
public abstract bool ConfirmAccount(
    string userName,
    string accountConfirmationToken
)
public:
virtual bool ConfirmAccount(
    String^ userName, 
    String^ accountConfirmationToken
) abstract
abstract ConfirmAccount : 
        userName:string * 
        accountConfirmationToken:string -> bool
public abstract function ConfirmAccount(
    userName : String, 
    accountConfirmationToken : String
) : boolean

Parameters

  • accountConfirmationToken
    Type: System.String
    A confirmation token to pass to the authentication provider.

Return Value

Type: System.Boolean
true if the account is confirmed; otherwise, false.

See Also

Reference

ExtendedMembershipProvider Class

ConfirmAccount Overload

WebMatrix.WebData Namespace