SimpleMembershipProvider.CreateUser Method
Definition
Important
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.
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.
- 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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for