GetRoleAssignmentToEveryone

Returns the role assignment given to all users who have a specified role.

Syntax

IRoleAssignment GetRoleAssignmentToEveryone(IRole role)

Parameter

Specify the following parameter when using this method:

Parameter Description

role

The user role for which you want the role assignment.

Return value

The role assignment for the specified role.

Discussion

This method returns the role assignment for everyone with the specified role, including local users and groups.

Exceptions

GetRoleAssignmentToEveryone throws an ArgumentNullException if the specified parameter value is null.