다음을 통해 공유


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