VectorChanged event
Collapse the table of content
Expand the table of content

IObservableVector<T>.VectorChanged event

Occurs when the vector changes.

Syntax


event VectorChangedEventHandler<T>^ VectorChanged {
   Windows::Foundation::EventRegistrationToken add(VectorChangedEventHandler<T>^ value);
   void remove(Windows::Foundation::EventRegistrationToken token);
}

Event information

Delegate VectorChangedEventHandler<T>

Remarks

The event handler receives an IVectorChangedEventArgs object that contains data that describes the event.

.NET usage

IObservableVector<T> isn't hidden for .NET usage. However, it's more common to use the .NET ObservableCollection<T> type as a base class, or implement a List type or interface (generic or nongeneric) and INotifyCollectionChanged separately. If you do use IObservableVector<T> for .NET code, the base interfaces (and their members) project as IList<T> and IEnumerable<T>. VectorChanged is the only API that's shared between the projections.

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.FoundationContract, introduced version 1.0

Namespace

Windows.Foundation.Collections
Windows::Foundation::Collections [C++]

Metadata

Windows.Foundation.FoundationContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

Windows.Foundation.Collections
Windows::Foundation::Collections [C++]

Metadata

Windows.winmd

See also

IObservableVector<T>
VectorChangedEventHandler(T)
IVectorChangedEventArgs

 

 

Show:
© 2016 Microsoft