SimpleRoleProvider.AddUsersToRoles(String[], String[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.