Share via


SPRoleCollection.Item property

NOTE: This API is now obsolete.

Obsolete. Use the new SPRoleDefinition and SPRoleAssignment classes instead, to define roles and to assign users to them. For more information, see Authorization object model. (In Windows SharePoint Services 2.0, the Item property returned the specified role from the collection and is maintained for backward compatibility.)

Overload list

  Name Description
Public property Item[Int32] Obsolete. Obsolete. Use the new SPRoleDefinition and SPRoleAssignment classes instead, to define roles and to assign users to them. For more information, see Authorization object model. (In Windows SharePoint Services 2.0, the Item property returned the role object at the specified index in the collection and is maintained for backward compatibility.)
Public property Item[String] Obsolete. Obsolete. Use the new SPRoleDefinition and SPRoleAssignment classes instead, to define roles and to assign users to them. For more information, see Authorization object model. (In Windows SharePoint Services 2.0, the Item property returned the role object with the specified name from the collection and is maintained for backward compatibility.)

Top

See also

Reference

SPRoleCollection class

SPRoleCollection members

Microsoft.SharePoint namespace