Removes a user from the membership data source.
Namespace:
MySql.Web.Security
Assembly:
MySql.Web (in MySql.Web.dll) Version: 6.2.2.0
Syntax
C# |
---|
public override bool DeleteUser(
string username,
bool deleteAllRelatedData
) |
Visual Basic (Declaration) |
---|
Public Overrides Function DeleteUser ( _
username As String, _
deleteAllRelatedData As Boolean _
) As Boolean |
Visual C++ |
---|
public:
virtual bool DeleteUser(
String^ username,
bool deleteAllRelatedData
) override |
Parameters
- username
- Type: System..::.String
The name of the user to delete.
- deleteAllRelatedData
- Type: System..::.Boolean
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.
See Also