共用方式為


SPViewCollection.Item Property (Int32)

Gets the view object at the specified index in the collection.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public ReadOnly Property Item ( _
    iIndex As Integer _
) As SPView
    Get
'Usage
Dim instance As SPViewCollection
Dim iIndex As Integer
Dim value As SPView

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

Parameters

  • iIndex
    Type: System.Int32

    A 32-bit integer that specifies the index.

Property Value

Type: Microsoft.SharePoint.SPView
An SPView object that represents the view.

Remarks

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

See Also

Reference

SPViewCollection Class

SPViewCollection Members

Item Overload

Microsoft.SharePoint Namespace