Udostępnij za pośrednictwem


IVector<T>.InsertAt(UInt32, T) Method

Definition

Inserts an item at a specified index in the vector.

public:
 void InsertAt(unsigned int index, T value);
void InsertAt(uint32_t const& index, T const& value);
public void InsertAt(uint index, T value);
Public Sub InsertAt (index As UInteger, value As T)

Parameters

index
UInt32

unsigned int

uint32_t

The zero-based index.

value
T

The item to insert.

Remarks

When programming with .NET, this interface is hidden, and you should use the System.Collections.Generic.IList<T> interface.

If the index is out of range, the view will throw an exception.

C++/WinRT If the index is out of range, the vector will throw a hresult_out_of_bounds exception.

C++/CX If the index is out of range, the vector will throw a OutOfBoundsException exception.

Applies to

See also