WebSecurity.ConfirmAccount Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ConfirmAccount(String) |
Confirms that an account is valid and activates the account. |
ConfirmAccount(String, String) |
Confirms that an account for the specified user name is valid and activates the account. |
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
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
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
The user name.
- accountConfirmationToken
- 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.