FreezableCollection<T>.Insert(Int32, T) 方法

定义

将指定对象插入指定索引处的 FreezableCollection<T>

public:
 virtual void Insert(int index, T value);
public void Insert(int index, T value);
abstract member Insert : int * 'T -> unit
override this.Insert : int * 'T -> unit
Public Sub Insert (index As Integer, value As T)

参数

index
Int32

应插入的从零开始 value 的索引。

value
T

要插入的对象。

实现

例外

valuenull

index 小于 0。

-或-

index 大于 Count

FreezableCollection<T>被冻结(其IsFrozen属性为 true)。

适用于