語言

PropertyValueCollection.Insert(Int32, Object) 方法

定義

在指定的索引處插入一個屬性值。

public:
 void Insert(int index, System::Object ^ value);
public void Insert(int index, object? value);
public void Insert(int index, object value);
member this.Insert : int * obj -> unit
Public Sub Insert (index As Integer, value As Object)

參數

index
Int32

以零為基礎的索引,用以插入屬性值。

value
Object

要插入的財產價值。

例外狀況

屬性值為空參考(Nothing 在 Visual Basic)。

在呼叫底層介面時發生錯誤。

索引小於 0(0)或大於集合大小。

適用於