PropertyValueCollection.Insert(Int32, Object) 方法
定义
在指定索引处将属性值插入此集合。Inserts a property value into this collection at a specified index.
public:
void Insert(int index, System::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
从以零开始的索引处插入属性值。The zero-based index at which to insert the property value.
- value
- Object
要插入的属性值。The property value to insert.
例外
属性值为空引用(在 Visual Basic 中为 Nothing)。The property value is a null reference (Nothing in Visual Basic).
调用基础接口时出错。An error occurred during the call to the underlying interface.
该索引小于 0(零)或大于此集合的大小。The index is less than 0 (zero) or greater than the size of the collection.