IList(T).Insert Method

SynchronizedReadOnlyCollection(Of T).IList(Of T).Insert Method

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

Throws a NotSupportedException if called.

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

'Declaration
Private Sub Insert ( _
	index As Integer, _
	value As T _
) Implements IList(Of T).Insert

Parameters

index
Type: System.Int32
The zero-based index at which value is to be inserted.
value
Type: T
The object to insert into the collection.

Implements

IList(Of T).Insert(Int32, T)

ExceptionCondition
NotSupportedException

Items cannot be inserted into a read-only collection.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft