Compartilhar via


IBindableObservableVector.VectorChanged Evento

Definição

Ocorre quando a coleção de vetores é alterada (adicionar, excluir, alterar item).

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 

Tipo de evento

Comentários

Essa interface dá suporte à criação de coleções associáveis a dados no C++. Ao programar com o .NET, você deve usar ObservableCollection(Of T) ou implementar IList e INotifyCollectionChanged.

Aplica-se a

Confira também