ExtendedMembershipProvider.CreateUserAndAccount Method (String, String, Boolean)
Creates a new user profile and a new membership account.
Namespace: WebMatrix.WebData
Assembly: WebMatrix.WebData (in WebMatrix.WebData.dll)
Syntax
'Declaration
Public Overridable Function CreateUserAndAccount ( _
userName As String, _
password As String, _
requireConfirmation As Boolean _
) As String
'Usage
Dim instance As ExtendedMembershipProvider
Dim userName As String
Dim password As String
Dim requireConfirmation As Boolean
Dim returnValue As String
returnValue = instance.CreateUserAndAccount(userName, _
password, requireConfirmation)
public virtual string CreateUserAndAccount(
string userName,
string password,
bool requireConfirmation
)
public:
virtual String^ CreateUserAndAccount(
String^ userName,
String^ password,
bool requireConfirmation
)
abstract CreateUserAndAccount :
userName:string *
password:string *
requireConfirmation:bool -> string
override CreateUserAndAccount :
userName:string *
password:string *
requireConfirmation:bool -> string
public function CreateUserAndAccount(
userName : String,
password : String,
requireConfirmation : boolean
) : String
Parameters
- userName
Type: System.String
The user name.
- password
Type: System.String
The password.
- requireConfirmation
Type: System.Boolean
(Optional) true to specify that the user account must be confirmed; otherwise, false. The default is false.
Return Value
Type: System.String
A token that can be sent to the user to confirm the user account.