Compartilhar via


Item(Int32) Property

The Item property of the SPListItem class gets or sets the value contained by the field at the specified index in the item.

[C#] In C#, this property is an indexer for the SPListItem class.

Parameters

index   A 32-bit integer that specifies the index.

Property Value

An object that contains the field value.

Remarks

The Item property throws an ArgumentOutOfRangeException if the specified index is outside the valid range of indices for the collection.

For information on the field types used in Microsoft Windows SharePoint Services and how they relate to .NET types, see the SPListItem class.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security