DeleteRole Method

MySQL Connector/Net

Deletes the role.

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

Syntax

C#
public override bool DeleteRole(
	string rolename,
	bool throwOnPopulatedRole
)
Visual Basic (Declaration)
Public Overrides Function DeleteRole ( _
	rolename As String, _
	throwOnPopulatedRole As Boolean _
) As Boolean
Visual C++
public:
virtual bool DeleteRole(
	String^ rolename, 
	bool throwOnPopulatedRole
) override

Parameters

rolename
Type: System..::.String
The rolename.
throwOnPopulatedRole
Type: System..::.Boolean
if set to true [throw on populated role].

Return Value

true if the role was successfully deleted; otherwise, false.

See Also