CreateUser Method

MySQL Connector/Net

Adds a new membership user to the data source.

Namespace:  MySql.Web.Security
Assembly:  MySql.Web (in MySql.Web.dll) Version: 6.2.2.0

Syntax

C#
public override MembershipUser CreateUser(
	string username,
	string password,
	string email,
	string passwordQuestion,
	string passwordAnswer,
	bool isApproved,
	Object providerUserKey,
	out MembershipCreateStatus status
)
Visual Basic (Declaration)
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, _
	<OutAttribute> ByRef status As MembershipCreateStatus _
) As MembershipUser
Visual C++
public:
virtual MembershipUser^ CreateUser(
	String^ username, 
	String^ password, 
	String^ email, 
	String^ passwordQuestion, 
	String^ passwordAnswer, 
	bool isApproved, 
	Object^ providerUserKey, 
	[OutAttribute] MembershipCreateStatus% status
) override

Parameters

username
Type: System..::.String
The user name for the new user.
password
Type: System..::.String
The password for the new user.
email
Type: System..::.String
The e-mail address for the new user.
passwordQuestion
Type: System..::.String
The password question for the new user.
passwordAnswer
Type: System..::.String
The password answer for the new user
isApproved
Type: System..::.Boolean
Whether or not the new user is approved to be validated.
providerUserKey
Type: System..::.Object
The unique identifier from the membership data source for the user.
status
Type: System.Web.Security..::.MembershipCreateStatus %
A MembershipCreateStatus enumeration value indicating whether the user was created successfully.

Return Value

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

See Also