IList(T).Insert Method

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


Inserts an item to the IList(Of T) at the specified index. This implementation always throws NotSupportedException.

Namespace:   System.Collections.ObjectModel
Assembly:  mscorlib (in mscorlib.dll)

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


Type: System.Int32

The zero-based index at which value should be inserted.

Type: T

The object to insert into the IList(Of T).

Exception Condition

Always thrown.

This member is an explicit interface member implementation. It can be used only when the ReadOnlyCollection(Of T) instance is cast to an IList(Of T) interface.

Universal Windows Platform
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
© 2016 Microsoft