Share via


SPWorkItemCollection.Item property (Int32)

Gets a specific SPWorkItem object in the collection by its index into the collection.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public ReadOnly Default Property Item ( _
    index As Integer _
) As SPWorkItem
    Get
'Usage
Dim instance As SPWorkItemCollection
Dim index As Integer
Dim value As SPWorkItem

value = instance(index)
public SPWorkItem this[
    int index
] { get; }

Parameters

  • index
    Type: System.Int32

    Integer specifying the position of the specified SPWorkItem object in the collection.

Property value

Type: Microsoft.SharePoint.SPWorkItem
Returns an integer specifying the object position by index.

See also

Reference

SPWorkItemCollection class

SPWorkItemCollection members

Item overload

Microsoft.SharePoint namespace