ItemCollection.ReplaceAll(Object[]) 方法

定義

一開始清除集合,然後將提供的陣列插入為新專案。

public:
 virtual void ReplaceAll(Platform::Array <Platform::Object ^> ^ items) = IVector<Platform::Object ^>::ReplaceAll;
void ReplaceAll(winrt::array_view <IInspectable const&> const& items);
public void ReplaceAll(object[] items);
function replaceAll(items)
Public Sub ReplaceAll (items As Object())

參數

items

Object[]

Platform::Object[]

IInspectable[]

新的集合專案。

實作

備註

對於追蹤「已變更」事件的實作,初始重設會引發事件,但新增的專案不會引發個別專案事件。

適用於