Partilhar 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)
Available in Sandboxed Solutions: No

Syntax

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

value = instance.Item(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