Redigera

Dela via


WindowsTokenRoleProvider.AddUsersToRoles(String[], String[]) Method

Definition

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

public:
 override void AddUsersToRoles(cli::array <System::String ^> ^ usernames, cli::array <System::String ^> ^ roleNames);
public override void AddUsersToRoles (string[] usernames, string[] roleNames);
override this.AddUsersToRoles : string[] * string[] -> unit
Public Overrides Sub AddUsersToRoles (usernames As String(), roleNames As String())

Parameters

usernames
String[]

A string array of user names to be added to the specified roles.

roleNames
String[]

A string array of role names to add the specified user names to.

Exceptions

An unsupported method was called.

Remarks

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

Applies to

See also