IArrayContract<C>.SetItem(Int32, C) Method

Definition

Replaces the element at the specified index with the specified IContract.

public:
 void SetItem(int index, C value);
public void SetItem (int index, C value);
abstract member SetItem : int * 'C -> unit
Public Sub SetItem (index As Integer, value As C)

Parameters

index
Int32

The zero-based index of the element to replace.

value
C

The new value for the element at the specified index.

Exceptions

index is less than zero.

-or-

index is equal to or greater than the return value of GetCount().

Applies to