ExtendedMembershipProvider.CreateUserAndAccount Method (String, String)
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 _
) As String
'Usage
Dim instance As ExtendedMembershipProvider
Dim userName As String
Dim password As String
Dim returnValue As String
returnValue = instance.CreateUserAndAccount(userName, _
password)
public virtual string CreateUserAndAccount(
string userName,
string password
)
public:
virtual String^ CreateUserAndAccount(
String^ userName,
String^ password
)
abstract CreateUserAndAccount :
userName:string *
password:string -> string
override CreateUserAndAccount :
userName:string *
password:string -> string
public function CreateUserAndAccount(
userName : String,
password : String
) : String
Parameters
- userName
Type: System.String
The user name.
- password
Type: System.String
The password.
Return Value
Type: System.String
A token that can be sent to the user to confirm the user account.
Remarks
Creates a new user profile and a new user account (membership entry). For more information, see the WebSecurity class overview.