Share via


CollectionBase<T>.Item property

Gets the item at the specified index.

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

Syntax

'Declaration
Public ReadOnly Default Property Item ( _
    index As Integer _
) As T
    Get
'Usage
Dim instance As CollectionBase
Dim index As Integer
Dim value As T

value = instance(index)
public T this[
    int index
] { get; }

Parameters

  • index
    Type: System.Int32

    Zero-based index of the item to get.

Property value

Type: T

Exceptions

Exception Condition
ArgumentOutOfRangeException

Index is less than zero, or index is equal to or greater than Count.

See also

Reference

CollectionBase<T> class

CollectionBase<T> members

Microsoft.SharePoint.Publishing namespace

CollectionBase<T>

SyncRoot

Count

IsSynchronized