IBindableObservableVector 介面

定義

新增變更通知的VectorChanged事件,以擴充IBindableVector

public interface class IBindableObservableVector : IBindableVector
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(4263425334, 32383, 20368, 172, 154, 71, 73, 132, 170, 229, 18)]
struct IBindableObservableVector : IBindableVector
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(4263425334, 32383, 20368, 172, 154, 71, 73, 132, 170, 229, 18)]
public interface IBindableObservableVector : IList
Public Interface IBindableObservableVector
Implements IList
屬性
實作

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

備註

此介面支援在 C++ 中建立資料可系結集合。 使用 .NET 進行程式設計時,您應該使用 ObservableCollection (Of T) 或實作 IListINotifyCollectionChanged。 如需詳細資訊,請參閱 系結至集合

介面繼承

IBindableObservableVector 繼承 IBindableVectorIBindableIterable。 實作 IBindableObservableVector 的類型也會針對 C++ 使用實作 IBindableVectorIBindableIterable 的介面成員,或 Microsoft .NET 使用方式的 IListIEnumerable

事件

VectorChanged

當向量集合變更 (新增、刪除、專案變更) 時發生。

適用於

另請參閱