共用方式為


ItemCollection.SetAt(UInt32, Object) 方法

定義

將位於指定索引處的值設定為指定的專案值。

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

參數

index
UInt32

unsigned int

uint32_t

要設定值的索引。

value
Object

Platform::Object

IInspectable

要設定的值。

實作

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

備註

SetAt 會取代索引處的專案,而集合計數會維持不變。

適用於