Click or drag to resize
CMSMembershipProviderCreateUser Method
Creates new user.

Namespace: CMS.MembershipProvider
Assembly: CMS.MembershipProvider (in CMS.MembershipProvider.dll) Version: 10.0.0
Syntax
C#
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: MembershipUser
See Also