| ActiveDirectoryRoleProviderDeleteRole Method |
Removes a role from the data source for the configured applicationName.
Namespace:
Galactic.Web.Security.ActiveDirectory
Assembly:
Galactic.Web.Security.ActiveDirectory (in Galactic.Web.Security.ActiveDirectory.dll) Version: 1.3.0.499 (1.3.0.499)
Syntax public override bool DeleteRole(
string roleName,
bool throwOnPopulatedRole
)
Public Overrides Function DeleteRole (
roleName As String,
throwOnPopulatedRole As Boolean
) As Boolean
public:
virtual bool DeleteRole(
String^ roleName,
bool throwOnPopulatedRole
) override
abstract DeleteRole :
roleName : string *
throwOnPopulatedRole : bool -> bool
override DeleteRole :
roleName : string *
throwOnPopulatedRole : bool -> bool
Parameters
- roleName
- Type: SystemString
The name of the role to delete. - throwOnPopulatedRole
- Type: SystemBoolean
A boolean indicating whether an exception should be thrown if there are still users contained in the role.
Return Value
Type:
BooleanTrue if the role was deleted, false otherwise.
See Also