ExtendedMembershipProvider.CreateAccount Method (String, String, Boolean)

When overridden in a derived class, creates a new user account using the specified user name and password, optionally requiring that the new account must be confirmed before the account is available for use.

Namespace:  WebMatrix.WebData
Assembly:  WebMatrix.WebData (in WebMatrix.WebData.dll)

Syntax

'Declaration
Public MustOverride Function CreateAccount ( _
    userName As String, _
    password As String, _
    requireConfirmationToken As Boolean _
) As String
'Usage
Dim instance As ExtendedMembershipProvider 
Dim userName As String 
Dim password As String 
Dim requireConfirmationToken As Boolean 
Dim returnValue As String 

returnValue = instance.CreateAccount(userName, _
    password, requireConfirmationToken)
public abstract string CreateAccount(
    string userName,
    string password,
    bool requireConfirmationToken
)
public:
virtual String^ CreateAccount(
    String^ userName, 
    String^ password, 
    bool requireConfirmationToken
) abstract
abstract CreateAccount : 
        userName:string * 
        password:string * 
        requireConfirmationToken:bool -> string
public abstract function CreateAccount(
    userName : String, 
    password : String, 
    requireConfirmationToken : boolean
) : String

Parameters

  • requireConfirmationToken
    Type: System.Boolean
    (Optional) true to specify that the 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 account.

Remarks

For more information, see SimpleMembershipProvider.CreateAccount(String, String, Boolean).

See Also

Reference

ExtendedMembershipProvider Class

CreateAccount Overload

WebMatrix.WebData Namespace