DefaultRoleProvider.DeleteRole Method (String, Boolean)
Deletes a role.
Namespace: System.Web.Providers
Assembly: System.Web.Providers (in System.Web.Providers.dll)
Syntax
public override bool DeleteRole(
string roleName,
bool throwOnPopulatedRole
)
public:
virtual bool DeleteRole(
String^ roleName,
bool throwOnPopulatedRole
) override
override DeleteRole :
roleName:string *
throwOnPopulatedRole:bool -> bool
Public Overrides Function DeleteRole (
roleName As String,
throwOnPopulatedRole As Boolean
) As Boolean
Parameters
roleName
Type: System.StringThe name of the role to delete.
throwOnPopulatedRole
Type: System.Booleantrue to raise an exception if roleName has one or more members; otherwise, false.
Return Value
Type: System.Boolean
true if roleName was deleted from the data source; otherwise, false.
See Also
DefaultRoleProvider Class
System.Web.Providers Namespace
ASP.NET Identity
Return to top