Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

MembershipProviderAdapter.CreateUser Method

Adds a new membership user to the data source.

[Visual Basic]
Public Overrides Sub CreateUser( _
   ByVal username As String, _
   ByVal password As String, _
   ByVal email As String, _
   ByVal passwordQuestion As String, _
   ByVal passwordAnswer As String, _
   ByVal isApproved As Boolean, _
   ByVal providerUserKey As Object, _
   ByRef status As MembershipCreateStatus _
) _
    Implements IMembershipProvider.CreateUser
[C#]
public override MembershipUser CreateUser(
   string username,
   string password,
   string email,
   string passwordQuestion,
   string passwordAnswer,
   bool isApproved,
   object providerUserKey,
   out MembershipCreateStatus status
);

Parameters

username
The user name for the new user.
password
The password for the new user.
email
The e-mail address for the new user.
passwordQuestion
The password question for the new user.
passwordAnswer
The password answer for the new user
isApproved
Whether or not the new user is approved to be validated.
providerUserKey
The unique identifier from the membership data source for the user.
status
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.

Implements

IMembershipProvider.CreateUser

See Also

MembershipProviderAdapter Class | Spring.Web.Providers Namespace