Click or drag to resize
Galactic API

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
)

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: Boolean
True if the role was deleted, false otherwise.
See Also