SynchronizedReadOnlyCollection.System.Collections.Generic.IList<T>.Insert Method
Throws a NotSupportedException if called.
Namespace: System.Collections.Generic
Assembly: System.ServiceModel (in system.servicemodel.dll)
'Declaration
Private Sub System.Collections.Generic.IList<T>.Insert ( _
index As Integer, _
value As T _
) Implements IList(Of T).Insert
'Usage
Dim instance As SynchronizedReadOnlyCollection(Of T)
Dim index As Integer
Dim value As T
CType(instance, IList(Of T)).Insert(index, value)
void IList<T>.Insert (
int index,
T value
)
private:
virtual void System.Collections.Generic.IList<T>.Insert (
int index,
T value
) sealed = IList<T>::Insert
Not applicable.
- index
The zero-based index at which value is to be inserted.
- value
The object to insert into the collection.
Exception type | Condition |
---|---|
NotSupportedException |
Items cannot be inserted into a read-only collection. |
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.
Supported in: 3.0
SynchronizedReadOnlyCollection Class
SynchronizedReadOnlyCollection Members
System.Collections.Generic Namespace