DeleteUser Method

MySQL Connector.Net

Collapse image Expand Image Copy image CopyHover image
Removes a user from the membership data source.

Namespace: MySql.Web.Security
Assembly: MySql.Web (in MySql.Web.dll) Version: 6.8.4.0

Syntax

C#
public override bool DeleteUser(
	string username,
	bool deleteAllRelatedData
)
Visual Basic
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