Share via


SPRoleCollection.Item Property

Include Protected Members
Include Inherited Members

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