IBindableObservableVector.VectorChanged 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
当向量集合更改 (添加、删除、项更改) 时发生。
public:
event BindableVectorChangedEventHandler ^ VectorChanged;
// Register
event_token VectorChanged(BindableVectorChangedEventHandler const& handler) const;
// Revoke with event_token
void VectorChanged(event_token const* cookie) const;
// Revoke with event_revoker
IBindableObservableVector::VectorChanged_revoker VectorChanged(auto_revoke_t, BindableVectorChangedEventHandler const& handler) const;
event BindableVectorChangedEventHandler VectorChanged;
function onVectorChanged(eventArgs) { /* Your code */ }
iBindableObservableVector.addEventListener("vectorchanged", onVectorChanged);
iBindableObservableVector.removeEventListener("vectorchanged", onVectorChanged);
- or -
iBindableObservableVector.onvectorchanged = onVectorChanged;
Event VectorChanged As BindableVectorChangedEventHandler
事件类型
注解
此接口支持在 C++ 中创建数据可绑定集合。 使用 .NET 编程时,应使用 ObservableCollection (Of T) 或实现 IList 和 INotifyCollectionChanged。
适用于
另请参阅
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈