GnomonMembershipProviderCreateUser Method |
Adds a new membership user to the data source.
Namespace: RMP.WebAssembly: RMP.Web (in RMP.Web.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public override MembershipUser CreateUser(
string username,
string password,
string email,
string passwordQuestion,
string passwordAnswer,
bool isApproved,
Object providerUserKey,
ref MembershipCreateStatus status
)
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
public:
virtual MembershipUser^ CreateUser(
String^ username,
String^ password,
String^ email,
String^ passwordQuestion,
String^ passwordAnswer,
bool isApproved,
Object^ providerUserKey,
MembershipCreateStatus% status
) override
abstract CreateUser :
username : string *
password : string *
email : string *
passwordQuestion : string *
passwordAnswer : string *
isApproved : bool *
providerUserKey : Object *
status : MembershipCreateStatus byref -> MembershipUser
override CreateUser :
username : string *
password : string *
email : string *
passwordQuestion : string *
passwordAnswer : string *
isApproved : bool *
providerUserKey : Object *
status : MembershipCreateStatus byref -> MembershipUser
Parameters
- username
- Type: SystemString
The user name for the new user. - password
- Type: SystemString
The password for the new user. - email
- Type: SystemString
The e-mail address for the new user. - passwordQuestion
- Type: SystemString
The password question for the new user. - passwordAnswer
- Type: SystemString
The password answer for the new user - isApproved
- Type: SystemBoolean
Whether or not the new user is approved to be validated. - providerUserKey
- Type: SystemObject
The unique identifier from the membership data source for the user. - status
- Type: System.Web.SecurityMembershipCreateStatus
A MembershipCreateStatus enumeration value indicating whether the user was created successfully.
Return Value
Type:
MembershipUserA
MembershipUser object populated with the information for the newly created user.
Exceptions See Also