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

要插入的屬性值。

例外狀況

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

呼叫基礎介面期間發生錯誤。

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

適用於