Share via


DependencyObjectCollection.SetAt(UInt32, DependencyObject) 方法

定义

将指定索引处的值设置为指定的 DependencyObject 值。

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

参数

index
UInt32

unsigned int

uint32_t

要设置值的索引。

value
DependencyObject

要设置的值。

实现

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)

注解

InsertAt 展开集合并移动所有后续索引项 1。 相反,SetAt 替换索引处的项,集合计数保持不变。

适用于