共用方式為


SPSimpleItem.Item property (Int32)

取得或設定指定的索引值為基礎的清單項目欄位的值。

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

Syntax

'宣告
Public Overrides Default Property Item ( _
    index As Integer _
) As Object
    Get
    Set
'用途
Dim instance As SPSimpleItem
Dim index As Integer
Dim value As Object

value = instance(index)

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

參數

  • index
    Type: System.Int32

    欄位的以零起始的索引。

Property value

Type: System.Object
對應至指定索引的欄位值。

請參閱

參照

SPSimpleItem class

SPSimpleItem members

Item overload

Microsoft.SharePoint namespace