共用方式為


SPItem.Item property (Int32)

取得或設定具有指定的整數索引的項目所需的欄位物件。

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

Syntax

'宣告
Public MustOverride Default Property Item ( _
    index As Integer _
) As Object
    Get
    Set
'用途
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; }

參數

  • index
    Type: System.Int32

    32 位元整數,表示索引。

Property value

Type: System.Object
object ,表示該欄位。

備註

如果index的值是小於 0 或大於計數欄位的Item屬性,則會擲回ArgumentOutOfRangeException 。

請參閱

參照

SPItem class

SPItem members

Item overload

Microsoft.SharePoint namespace