PrincipalValueCollection<T>.Insert(Int32, T) PrincipalValueCollection<T>.Insert(Int32, T) PrincipalValueCollection<T>.Insert(Int32, T) PrincipalValueCollection<T>.Insert(Int32, T) Method

定義

將指定的物件插入至集合中所指定索引處。Inserts the specified object into the collection at the specified index.

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 Int32 Int32 Int32

集合中會插入 value 的索引處。The index at which value will be inserted into the collection.

value
T T T T

物件。An object.

實作

適用於