WindowsTokenRoleProvider::RemoveUsersFromRoles Method (array<String^>^, array<String^>^)
.NET Framework (current version)
This method is not supported by the Windows token role provider.
Assembly: System.Web (in System.Web.dll)
public: virtual void RemoveUsersFromRoles( array<String^>^ usernames, array<String^>^ roleNames ) override
Parameters
- usernames
-
Type:
array<System::String^>^
A string array of user names to be added to the specified roles.
- roleNames
-
Type:
array<System::String^>^
A string array of role names to add the specified user names to.
| Exception | Condition |
|---|---|
| System.Configuration.Provider::ProviderException | An unsupported method was called. |
This method is not supported by the WindowsTokenRoleProvider class and always throws a ProviderException.
.NET Framework
Available since 2.0
Available since 2.0
Show: