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

Definition

Adds the specified user names to the specified roles.

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[]

The user names to add.

roleNames
String[]

The roles to add the names to.

Exceptions

One or more of the specified users already exists in one or more of the specified roles.

Applies to