共用方式為


SPFormCollection.Item property (Int32)

取得集合中指定之索引處的表單物件。在 C# 中,這個屬性會是SPFormCollection類別的索引子。

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

Syntax

'宣告
Public ReadOnly Default Property Item ( _
    iIndex As Integer _
) As SPForm
    Get
'用途
Dim instance As SPFormCollection
Dim iIndex As Integer
Dim value As SPForm

value = instance(iIndex)
public SPForm this[
    int iIndex
] { get; }

參數

  • iIndex
    Type: System.Int32

    指定的索引為 32 位元整數。

Property value

Type: Microsoft.SharePoint.SPForm
Microsoft.SharePoint.SPForm 物件,表示表單。

備註

如果指定的索引超出索引集合的有效範圍內的 [ Item ] 屬性,則會擲回ArgumentOutOfRangeException 。

請參閱

參照

SPFormCollection class

SPFormCollection members

Item overload

Microsoft.SharePoint namespace