GetRoleAssignmentById

Returns a role assignment given an ID.

Syntax

IRoleAssignment GetRoleAssignment (Guid id)

Parameter

Specify the following parameter when using this method:

Parameter Description
id The GUID of the role assignment.

Return value

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

Exceptions

GetRoleAssignmentById throws an ArgumentNullException if the specified parameter value is empty.