Share via


SPSimpleItem.Item Property (Int32)

Gets or sets the value of the list item field based on the specified index value.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Overrides Property Item ( _
    index As Integer _
) As Object
    Get
    Set
'Usage
Dim instance As SPSimpleItem
Dim index As Integer
Dim value As Object

value = instance.Item(index)

instance.Item(index) = value
public override Object this[
    int index
] { get; set; }

Parameters

  • index
    Type: System.Int32

    The zero-based index of the field.

Property Value

Type: System.Object
The value of the field that corresponds to the given index.

See Also

Reference

SPSimpleItem Class

SPSimpleItem Members

Item Overload

Microsoft.SharePoint Namespace