Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

SimpleMembershipProvider.DeleteAccount Method

Deletes the specified membership account.

Namespace:  WebMatrix.WebData
Assembly:  WebMatrix.WebData (in WebMatrix.WebData.dll)
public override function DeleteAccount(
	userName : String
) : boolean

Parameters

userName
Type: System.String
The user name.

Return Value

Type: System.Boolean
true if the user account was deleted; otherwise, false.
ExceptionCondition
ArgumentException

username is a null reference (Nothing in Visual Basic) or empty.

InvalidOperationException

The SimpleMembershipProvider class was not initialized using a call to the InitializeDatabaseConnection() method.

This method deletes the entry in the membership account table (by default, webpages_Membership). It does not delete user profile data that is associated with the account.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.