SP.RoleDefinitionCollection Methods

Applies to: SharePoint Foundation 2010

The following table lists the methods of the SP.RoleDefinitionCollection class.

Methods

Name

Description

add

Adds a new role definition to the collection based on the passed parameter.

getById

Gets the role definition with the specified ID from the collection.

getByName

Gets the role definition with the specified name.

getByType

Specifies the types of roles that are available for users and groups.

itemAt

Gets the role definition at the specified index in the collection.

RoleDefinitionCollection

This member is reserved for internal use and is not intended to be used directly from your code.

Applies To

SP.RoleDefinitionCollection Class

See Also

Reference

SP.RoleDefinitionCollection Properties

SP Namespace