SimpleMembershipProvider.CreateUser(String, String, String, String, String, Boolean, Object, MembershipCreateStatus) SimpleMembershipProvider.CreateUser(String, String, String, String, String, Boolean, Object, MembershipCreateStatus) SimpleMembershipProvider.CreateUser(String, String, String, String, String, Boolean, Object, MembershipCreateStatus) Method

Definition

Adds the specified user to the membership database.

public override System.Web.Security.MembershipUser CreateUser (string username, string password, string email, string passwordQuestion, string passwordAnswer, bool isApproved, object providerUserKey, out System.Web.Security.MembershipCreateStatus status);
override this.CreateUser : string * string * string * string * string * bool * obj *  -> System.Web.Security.MembershipUser
Public Overrides Function CreateUser (username As String, password As String, email As String, passwordQuestion As String, passwordAnswer As String, isApproved As Boolean, providerUserKey As Object, ByRef status As MembershipCreateStatus) As MembershipUser
Parameters
username
String String String

The user name for the new user account.

password
String String String

The password for the new user account.

email
String String String

The email address for the new user account.

passwordQuestion
String String String

The security question for the new user account.

passwordAnswer
String String String

The answer to the security question for the new user account.

isApproved
Boolean Boolean Boolean

true to indicate that the user account is approved to be validated; otherwise, false.

providerUserKey
Object Object Object

The unique identifier from the membership data source for the user account.

status
MembershipCreateStatus MembershipCreateStatus MembershipCreateStatus

When this method returns, contains a MembershipCreateStatus enumeration value that indicates whether the user account was created successfully. This parameter is passed uninitiated.

Returns

A MembershipUser object that is populated with the information for the newly created user account.

Applies to