Share via


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)

Syntax

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

value = instance(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