MembershipProvider.DeleteUser Method
.NET Framework 2.0
Removes a user from the membership data source.
Namespace: System.Web.Security
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
public abstract boolean DeleteUser ( String username, boolean deleteAllRelatedData )
public abstract function DeleteUser ( username : String, deleteAllRelatedData : boolean ) : boolean
Not applicable.
Parameters
- username
The name of the user to delete.
- deleteAllRelatedData
true to delete data related to the user from the database; false to leave data related to the user in the database.
Return Value
true if the user was successfully deleted; otherwise, false.For an example of a MembershipProvider implementation, see Implementing a Profile Provider.
Community Additions
ADD
Show: