SynchronizedReadOnlyCollection<(Of <(T>)>).IList.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)

Syntax

Private Sub Insert ( _
    index As Integer, _
    value As Object _
) Implements IList.Insert
void IList.Insert(
    int index,
    Object value
)

Parameters

  • index
    Type: System..::.Int32
    The zero-based index at which value is to be inserted.

Implements

IList..::.Insert(Int32, Object)

Exceptions

Exception Condition
NotSupportedException

Items cannot be inserted into a read-only collection.

Remarks

Throws a NotSupportedException if called, because read-only collections cannot be altered.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

SynchronizedReadOnlyCollection<(Of <(T>)>) Class

System.Collections.Generic Namespace