DeleteRole Method

MySQL Connector.Net

Collapse image Expand Image Copy image CopyHover image
Deletes the role.

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

Syntax

C#
public override bool DeleteRole(
	string rolename,
	bool throwOnPopulatedRole
)
Visual Basic
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