共用方式為


SPViewCollection.Item property (Int32)

取得集合中指定之索引處的檢視物件。

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

Syntax

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

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

參數

  • iIndex
    Type: System.Int32

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

Property value

Type: Microsoft.SharePoint.SPView
SPView 物件,表示檢視表。

備註

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

請參閱

參照

SPViewCollection class

SPViewCollection members

Item overload

Microsoft.SharePoint namespace