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 替换索引处的项,并且集合计数保持不变。

适用于