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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public MustOverride Property Item ( _
index As Integer _
) As Object
Get
Set
'Usage
Dim instance As SPItem
Dim index As Integer
Dim value As Object
value = instance.Item(index)
instance.Item(index) = value
public abstract Object this[
int index
] { get; set; }
Parameters
index
Type: System.Int32A 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.