MembershipAdapter.CreateUser Method
.NET Framework 4.5
Namespace: Microsoft.AspNet.Membership.OpenAuth
Assembly: Microsoft.AspNet.Membership.OpenAuth (in Microsoft.AspNet.Membership.OpenAuth.dll)
Syntax
'Declaration
Public Function CreateUser ( _
userName As String, _
password As String, _
email As String, _
passwordQuestion As String, _
passwordAnswer As String, _
isApproved As Boolean, _
<OutAttribute> ByRef status As MembershipCreateStatus _
) As MembershipUser
'Usage
Dim instance As MembershipAdapter
Dim userName As String
Dim password As String
Dim email As String
Dim passwordQuestion As String
Dim passwordAnswer As String
Dim isApproved As Boolean
Dim status As MembershipCreateStatus
Dim returnValue As MembershipUser
returnValue = instance.CreateUser(userName, _
password, email, passwordQuestion, _
passwordAnswer, isApproved, status)
public MembershipUser CreateUser(
string userName,
string password,
string email,
string passwordQuestion,
string passwordAnswer,
bool isApproved,
out MembershipCreateStatus status
)
public:
virtual MembershipUser^ CreateUser(
String^ userName,
String^ password,
String^ email,
String^ passwordQuestion,
String^ passwordAnswer,
bool isApproved,
[OutAttribute] MembershipCreateStatus% status
) sealed
abstract CreateUser :
userName:string *
password:string *
email:string *
passwordQuestion:string *
passwordAnswer:string *
isApproved:bool *
status:MembershipCreateStatus byref -> MembershipUser
override CreateUser :
userName:string *
password:string *
email:string *
passwordQuestion:string *
passwordAnswer:string *
isApproved:bool *
status:MembershipCreateStatus byref -> MembershipUser
public final function CreateUser(
userName : String,
password : String,
email : String,
passwordQuestion : String,
passwordAnswer : String,
isApproved : boolean,
status : MembershipCreateStatus
) : MembershipUser
Parameters
- userName
Type: System.String
- password
Type: System.String
- email
Type: System.String
- passwordQuestion
Type: System.String
- passwordAnswer
Type: System.String
- isApproved
Type: System.Boolean
- status
Type: System.Web.Security.MembershipCreateStatus%
Return Value
Type: System.Web.Security.MembershipUser
Implements
IMembership.CreateUser(String, String, String, String, String, Boolean, MembershipCreateStatus%)