IMembership.CreateUser Method
.NET Framework 4
Namespace: Microsoft.AspNet.Membership.OpenAuth
Assembly: Microsoft.AspNet.Membership.OpenAuth (in Microsoft.AspNet.Membership.OpenAuth.dll)
Syntax
'Declaration
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 IMembership
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)
MembershipUser CreateUser(
string userName,
string password,
string email,
string passwordQuestion,
string passwordAnswer,
bool isApproved,
out MembershipCreateStatus status
)
MembershipUser^ CreateUser(
String^ userName,
String^ password,
String^ email,
String^ passwordQuestion,
String^ passwordAnswer,
bool isApproved,
[OutAttribute] MembershipCreateStatus% status
)
abstract CreateUser :
userName:string *
password:string *
email:string *
passwordQuestion:string *
passwordAnswer:string *
isApproved:bool *
status:MembershipCreateStatus byref -> MembershipUser
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