Dela via


SetterBaseCollection.SetAt(UInt32, SetterBase) Method

Definition

Sets the value at the specified index to the SetterBase value specified.

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

Parameters

index
UInt32

unsigned int

uint32_t

The index at which to set the value.

value
SetterBase

The value to set.

Implements

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)

Remarks

InsertAt expands the collection and moves all subsequent index items by one. In contrast, SetAt replaces the item at the index, and the collection count remains the same.

Note

The equivalent Microsoft .NET API is Item (the indexer).

Applies to

See also