Share via


ItemCollection.InsertAt(UInt32, Object) 方法

定義

在指定的索引處插入指定的專案。

public:
 virtual void InsertAt(unsigned int index, Platform::Object ^ value) = IVector<Platform::Object ^>::InsertAt;
void InsertAt(uint32_t const& index, IInspectable const& value);
public void InsertAt(uint index, object value);
function insertAt(index, value)
Public Sub InsertAt (index As UInteger, value As Object)

參數

index
UInt32

unsigned int

uint32_t

要設定值的索引。

value
Object

Platform::Object

IInspectable

要設定的值。

實作

M:Windows.Foundation.Collections.IVector1.InsertAt(System.UInt32,0) M:Windows.Foundation.Collections.IVector1.InsertAt(unsigned int,0) M:Windows.Foundation.Collections.IVector1.InsertAt(uint32_t,0)

備註

InsertAt 會展開集合,並依一個移動所有後續的索引項目目。

適用於