ExtendedMembershipProvider.CreateAccount 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
CreateAccount(String, String) |
Creates a new user account using the specified user name and password. |
CreateAccount(String, String, Boolean) |
When overridden in a derived class, creates a new user account using the specified user name and password, optionally requiring that the new account must be confirmed before the account is available for use. |
CreateAccount(String, String)
Creates a new user account using the specified user name and password.
public virtual string CreateAccount (string userName, string password);
abstract member CreateAccount : string * string -> string
override this.CreateAccount : string * string -> string
Public Overridable Function CreateAccount (userName As String, password As String) As String
Parameters
- userName
- String
The user name.
- password
- String
The password.
Returns
A token that can be sent to the user to confirm the account.
Applies to
CreateAccount(String, String, Boolean)
When overridden in a derived class, creates a new user account using the specified user name and password, optionally requiring that the new account must be confirmed before the account is available for use.
public abstract string CreateAccount (string userName, string password, bool requireConfirmationToken);
abstract member CreateAccount : string * string * bool -> string
Public MustOverride Function CreateAccount (userName As String, password As String, requireConfirmationToken As Boolean) As String
Parameters
- userName
- String
The user name.
- password
- String
The password.
- requireConfirmationToken
- Boolean
(Optional) true to specify that the account must be confirmed; otherwise, false. The default is false.
Returns
A token that can be sent to the user to confirm the account.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for