AddRoleAssignment

Adds an empty user role assignment to the computer role.

Syntax

IRoleAssignment AddRoleAssignment()

Return value

Returns an empty role assignment. This role assignment is not stored in Active Directory until you call the RoleAssignment:Commit method.

Discussion

Any number of users can be assigned to a computer role and each of those users can have more than one role. Use this method to get an empty user role assignment for a computer role.