Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IRoleProvider.DeleteRole Method

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

[Visual Basic]
Public Sub DeleteRole( _
   ByVal roleName As String, _
   ByVal throwOnPopulatedRole As Boolean _
)
[C#]
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.

See Also

IRoleProvider Interface | Spring.Web.Providers Namespace