GnomonRoleProviderDeleteRole Method |
Removes a role from the data source for the configured applicationName.
Namespace: RMP.WebAssembly: RMP.Web (in RMP.Web.dll) Version: 1.0.0.0 (1.0.0.0)
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
If true, throw an exception if roleName has one or more members and do not delete roleName.
Return Value
Type:
Booleantrue if the role was successfully deleted; otherwise, false.
Exceptions See Also