Inserts an item to the IList at the specified index.

Namespace: Dapfor.Net.Data
Assembly: Dapfor.Net (in Dapfor.Net.dll) Version: 2.10.3.24917 (2.10.3.24917)

Syntax

C#
public void Insert(
	int index,
	Object value
)
Visual Basic
Public Sub Insert ( 
	index As Integer,
	value As Object
)
Visual C++
public:
virtual void Insert(
	int index, 
	Object^ value
) sealed
F#
abstract Insert : 
        index : int * 
        value : Object -> unit 
override Insert : 
        index : int * 
        value : Object -> unit 

Parameters

index
Type: System..::..Int32
The zero-based index at which value should be inserted.
value
Type: System..::..Object
The Object to insert into the IList.

Implements

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

Exceptions

ExceptionCondition
System..::..ArgumentOutOfRangeExceptionindex is not a valid index in the IList.
System..::..NotSupportedException The IList is read-only. -or- The IList has a fixed size.
System..::..NullReferenceExceptionvalue is null reference in the IList.

See Also