WebSecurity.ConfirmAccount WebSecurity.ConfirmAccount WebSecurity.ConfirmAccount Method

Definition

Overloads

ConfirmAccount(String) ConfirmAccount(String) ConfirmAccount(String)

Confirms that an account is valid and activates the account.

ConfirmAccount(String, String) ConfirmAccount(String, String) ConfirmAccount(String, String)

Confirms that an account for the specified user name is valid and activates the account.

ConfirmAccount(String) ConfirmAccount(String) ConfirmAccount(String)

Confirms that an account is valid and activates the account.

public static bool ConfirmAccount (string accountConfirmationToken);
static member ConfirmAccount : string -> bool
Public Shared Function ConfirmAccount (accountConfirmationToken As String) As Boolean
Parameters
accountConfirmationToken
String String String

A confirmation token to pass to the authentication provider.

Returns

true if the account is confirmed; otherwise, false.

Exceptions

The Initialize(String, NameValueCollection) method was not called.-or-The InitializeDatabaseConnection method was not called.-or-The SimpleMembershipProvider membership provider is not registered in the configuration of your site. For more information, contact your site's system administrator.

ConfirmAccount(String, String) ConfirmAccount(String, String) ConfirmAccount(String, String)

Confirms that an account for the specified user name is valid and activates the account.

public static bool ConfirmAccount (string userName, string accountConfirmationToken);
static member ConfirmAccount : string * string -> bool
Public Shared Function ConfirmAccount (userName As String, accountConfirmationToken As String) As Boolean
Parameters
userName
String String String

The user name.

accountConfirmationToken
String String String

A confirmation token to pass to the authentication provider.

Returns

true if the account is confirmed; otherwise, false.

Exceptions

The Initialize(String, NameValueCollection) method was not called.-or-The InitializeDatabaseConnection method was not called.-or-The SimpleMembershipProvider membership provider is not registered in the configuration of your site. For more information, contact your site's system administrator.

Applies to