Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ExtendedMembershipProvider.CreateUserAndAccount Method (String, String, Boolean, 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)

public abstract string CreateUserAndAccount(
	string userName,
	string password,
	bool requireConfirmation,
	IDictionary<string, Object> values


Type: System.String
The user name.
Type: System.String
The password.
Type: System.Boolean
(Optional) true to specify that the user account must be confirmed; otherwise, false. The default is false.
Type: System.Collections.Generic.IDictionary<String, Object>
(Optional) A dictionary that contains additional user attributes to store in the user profile. The default is null.

Return Value

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

  • Medium trust for the immediate caller. This member can be used by partially trusted code.
© 2015 Microsoft