Share via


ExtendedMembershipProvider.CreateUserAndAccount Method (String, String, IDictionary<String, Object>)

When overridden in a derived class, 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, _
    values As IDictionary(Of String, Object) _
) As String
'Usage
Dim instance As ExtendedMembershipProvider 
Dim userName As String 
Dim password As String 
Dim values As IDictionary(Of String, Object)
Dim returnValue As String 

returnValue = instance.CreateUserAndAccount(userName, _
    password, values)
public virtual string CreateUserAndAccount(
    string userName,
    string password,
    IDictionary<string, Object> values
)
public:
virtual String^ CreateUserAndAccount(
    String^ userName, 
    String^ password, 
    IDictionary<String^, Object^>^ values
)
abstract CreateUserAndAccount : 
        userName:string * 
        password:string * 
        values:IDictionary<string, Object> -> string  
override CreateUserAndAccount : 
        userName:string * 
        password:string * 
        values:IDictionary<string, Object> -> string
public function CreateUserAndAccount(
    userName : String, 
    password : String, 
    values : IDictionary<String, Object>
) : String

Parameters

Return Value

Type: System.String
A token that can be sent to the user to confirm the user account.

See Also

Reference

ExtendedMembershipProvider Class

CreateUserAndAccount Overload

WebMatrix.WebData Namespace