Export (0) Print
Expand All

SimpleMembershipProvider.DeleteAccount Method

Deletes the specified membership account.

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

abstract DeleteAccount : 
        userName:string -> bool  
override DeleteAccount : 
        userName:string -> bool

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.

Show:
© 2014 Microsoft