PropertyValueCollection.Insert(Int32, Object) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在指定的索引處插入一個屬性值。
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)或大於集合大小。