SimpleMembershipProvider.CreateUser 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 * MembershipCreateStatus -> 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

The user name for the new user account.

password
String

The password for the new user account.

email
String

The email address for the new user account.

passwordQuestion
String

The security question for the new user account.

passwordAnswer
String

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

isApproved
Boolean

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

providerUserKey
Object

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

status
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