Edit

Share via


PropertyValueCollection.Insert(Int32, Object) Method

Definition

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);
public void Insert (int index, object value);
member this.Insert : int * obj -> unit
Public Sub Insert (index As Integer, value As Object)

Parameters

index
Int32

The zero-based index at which to insert the property value.

value
Object

The property value to insert.

Exceptions

The property value is a null reference (Nothing in Visual Basic).

An error occurred during the call to the underlying interface.

The index is less than 0 (zero) or greater than the size of the collection.

Applies to