Represents a collection of role assignments for a securable object.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
To create a role assignment that has no role definition bindings, use an SPRoleAssignment constructor. To add bound role definitions to a role assignment, use the ImportRoleDefinitionBindings method. Use the Add method of the class to add a role assignment to the collection of role assignments for the object.
Use an indexer to return a single item from the collection. For example, if the collection is assigned to a variable named myRoleAssignments, use myRoleAssignments[index] in C# or myRoleAssignments(index) in Visual Basic, where index is either the index number of the item in the collection or a string containing the name of the role definition.