IList.Item Property

SynchronizedReadOnlyCollection(Of T).IList.Item Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets the element at the specified index and throws an exception if an element is set.

Namespace:  System.Collections.Generic
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

'Declaration
Private Property Item ( _
	index As Integer _
) As Object Implements IList.Item

Parameters

index
Type: System.Int32
The zero-based index of the element in the collection.

Property Value

Type: System.Object
The object at the specified location in the collection.

Implements

IList.Item(Int32)

ExceptionCondition
NotSupportedException

Items cannot be set in a read-only collection.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft