Click or drag to resize
Galactic API

SimpleMappingRoleProviderDeleteRole Method

Removes a role from the data source for the configured applicationName.

Namespace:  Galactic.Web.Security.SimpleMapping
Assembly:  Galactic.Web.Security.SimpleMapping (in Galactic.Web.Security.SimpleMapping.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