Inserts an item to the IList at the specified index.

Namespace: Dapfor.Wpf.Data
Assembly: Dapfor.Wpf (in Dapfor.Wpf.dll) Version: 4.1.0.26317 (4.1.0.26317)

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