SPUserCollection.Item Property (Int32)
Gets the user object at the specified index in the collection. In C#, this property is an indexer for the SPUserCollection class.
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 SPUser
Get
'Usage
Dim instance As SPUserCollection
Dim index As Integer
Dim value As SPUser
value = instance.Item(index)
public SPUser this[
int index
] { get; }
Parameters
index
Type: System.Int32A 32-bit integer that specifies the index.
Property Value
Type: Microsoft.SharePoint.SPUser
A Microsoft.SharePoint.SPUser object that represents the user.
Remarks
The Item property throws an ArgumentOutOfRangeException if the specified index is outside the valid range of indexes for the collection.