SimpleMembershipProvider.DeleteUser(String, Boolean) SimpleMembershipProvider.DeleteUser(String, Boolean) SimpleMembershipProvider.DeleteUser(String, Boolean) Method

Definition

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 String String

The user name.

deleteAllRelatedData
Boolean Boolean 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

Applies to