Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the role definition at the specified index in the collection of role definition objects.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public ReadOnly Property Item ( _
index As Integer _
) As SPRoleDefinition
Get
'Usage
Dim instance As SPRoleDefinitionCollection
Dim index As Integer
Dim value As SPRoleDefinition
value = instance.Item(index)
public SPRoleDefinition this[
int index
] { get; }
Parameters
index
Type: System.Int32A 32-bit integer that specifies the index.
Property Value
Type: Microsoft.SharePoint.SPRoleDefinition
An SPRoleDefinition object that represents the role definition.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | The value that is passed as an argument must be greater than zero and less than the value of the Count property. |
See Also
Reference
SPRoleDefinitionCollection Class