CMSMembershipProviderCreateUser Method |
Creates new user.
Namespace: CMS.MembershipProviderAssembly: CMS.MembershipProvider (in CMS.MembershipProvider.dll) Version: 11.0.0
Syntax public override MembershipUser CreateUser(
string username,
string password,
string email,
string passwordQuestion,
string passwordAnswer,
bool isApproved,
Object providerUserKey,
out MembershipCreateStatus status
)
Parameters
- username
- Type: SystemString
User name - password
- Type: SystemString
Password - email
- Type: SystemString
E-mail - passwordQuestion
- Type: SystemString
Not used - passwordAnswer
- Type: SystemString
Not used - isApproved
- Type: SystemBoolean
'isApproved' parameter is considered as 'Enabled' property in UserInfo; - providerUserKey
- Type: SystemObject
Not used - status
- Type: System.Web.SecurityMembershipCreateStatus
If UserInfoProvider's SetUserInfo method throws exception then status is set to 'ProviderError', else it is set to 'Success'
Return Value
Type:
MembershipUserSee Also