SPItem.Item property (Int32)

Gets or sets a field object for the item that has the specified integer index.

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

Syntax

'Declaration
Public MustOverride Default Property Item ( _
    index As Integer _
) As Object
    Get
    Set
'Usage
Dim instance As SPItem
Dim index As Integer
Dim value As Object

value = instance(index)

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

Parameters

  • index
    Type: System.Int32

    A 32-bit integer representing the index.

Property value

Type: System.Object
An object that represents the field.

Remarks

The Item property throws an ArgumentOutOfRangeException if the value of index is less than 0 or greater than the count of fields.

See also

Reference

SPItem class

SPItem members

Item overload

Microsoft.SharePoint namespace