Security. Create User And Account(String, String, Object, Boolean) Method
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.
Creates a new user profile entry and a new membership account.
public static string CreateUserAndAccount (string userName, string password, object propertyValues = default, bool requireConfirmationToken = false);
static member CreateUserAndAccount : string * string * obj * bool -> string
Public Shared Function CreateUserAndAccount (userName As String, password As String, Optional propertyValues As Object = null, Optional requireConfirmationToken As Boolean = false) As String
The user name.
The password for the user.
(Optional) A dictionary that contains additional user attributes. The default is null.
(Optional) true to specify that the user account must be confirmed; otherwise, false. The default is false.
A token that can be sent to the user to confirm the user account.
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.