Adds the specified users to the specified roles.
Exception Type | Condition |
---|---|
ArgumentNullException | One of the roles in roleNames is null. -or- One of the users in usernames is null. |
ArgumentException | One of the roles in roleNames is an empty string or contains a comma (,). -or- roleNames contains a duplicate element.-or-usernames contains a duplicate element. |
VGRoleProvider Class | Novalys.VisualGuard.Security.WebForm Namespace