SP.RoleDefinitionCollection.getById(id) Method
Applies to: SharePoint Foundation 2010
Gets the role definition with the specified ID from the collection.
var value = SP.RoleDefinitionCollection.getById(id);
Parameters
- id
Specifies the unique identifier of the role definition searched. The value of id does not correspond to the index of the role definition within the collection, but refers to the value of the Id property of the RoleDefinition.
Type: Int32
Return Value
Type: SP.RoleDefinition
Applies To
SP.RoleDefinitionCollection Class
Exceptions
- ArgumentException
The role definition does not exist in the collection at the given scope. Error code: -2147024809.
See Also
Reference
SP.RoleDefinitionCollection Methods