Export (0) Print
Expand All

Array.IList.Insert Method

.NET Framework 1.1

Implements IList.Insert. Always throws NotSupportedException.

[Visual Basic]
Private Sub Insert( _
   ByVal index As Integer, _
   ByVal value As Object _
) Implements IList.Insert
[C#]
void IList.Insert(
   int index,
 object value
);
[C++]
private: void IList::Insert(
 int index,
 Object* value
);
[JScript]
private function IList.Insert(
   index : int,
 value : Object
);

Parameters

index
The index at which value should be inserted.
value
The object to insert.

Implements

IList.Insert

Exceptions

Exception Type Condition
NotSupportedException Always thrown.

Remarks

Array has a fixed size; therefore, elements cannot be added or removed. Use SetValue to change the value of an existing element.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Common Language Infrastructure (CLI) Standard

See Also

Array Class | Array Members | System Namespace | SetValue

Show:
© 2014 Microsoft