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)
Syntax
'Declaration
Public ReadOnly Default Property Item ( _
index As Integer _
) As SPUser
Get
'Usage
Dim instance As SPUserCollection
Dim index As Integer
Dim value As SPUser
value = instance(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.