Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

RoleProviderAdapter.DeleteRole Method

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

[Visual Basic]
Public Overrides Sub DeleteRole( _
   ByVal roleName As String, _
   ByVal throwOnPopulatedRole As Boolean _
) _
    Implements IRoleProvider.DeleteRole
[C#]
public override bool DeleteRole(
   string roleName,
   bool throwOnPopulatedRole
);

Parameters

roleName
The name of the role to delete.
throwOnPopulatedRole
If true, throw an exception if roleName has one or more members and do not delete roleName.

Return Value

true if the role was successfully deleted; otherwise, false.

Implements

IRoleProvider.DeleteRole

See Also

RoleProviderAdapter Class | Spring.Web.Providers Namespace