GetRoleAssignment

Returns a role assignment given a role and trustee.

Syntax

IRoleAssignment GetRoleAssignment (IRole role, string dn) 

Parameter

Specify the following parameters when using this method.

Parameter Description

role

The role for which you want the assignment.

dn

The distinguished name of the user or group to whom the role is assigned.

Return value

The role assignment, or null if no match is found.

Exceptions

GetRoleAssignment throws an ArgumentNullException if either specified parameter value is null or empty.