WindowsTokenRoleProvider.DeleteRole Method (String, Boolean)

 

This method is not supported by the Windows token role provider.

Namespace:   System.Web.Security
Assembly:  System.Web (in System.Web.dll)

public override bool DeleteRole(
	string roleName,
	bool throwOnPopulatedRole
)

Parameters

roleName
Type: System.String

The name of the role to delete.

throwOnPopulatedRole
Type: System.Boolean

If true, an exception will be thrown on an attempt to delete a role that contains one or more members.

Return Value

Type: System.Boolean

None. The method is not supported by the WindowsTokenRoleProvider class and always throws a ProviderException.

Exception Condition
System.Configuration.Provider.ProviderException

An unsupported method was called.

.NET Framework
Available since 2.0
Return to top
Show: