SimpleMembershipProvider.DeleteUser(String, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Deletes the specified user account, and optionally deletes all profile data that is related to that user account.
public override bool DeleteUser (string username, bool deleteAllRelatedData);
override this.DeleteUser : string * bool -> bool
Public Overrides Function DeleteUser (username As String, deleteAllRelatedData As Boolean) As Boolean
Parameters
- username
- String
The user name.
- deleteAllRelatedData
- Boolean
true to delete profile data that is related to the user, or false to retain data that is related to the user.
Returns
true if the user account was deleted; otherwise, false.
Exceptions
username
is null or empty.