IVectorChangedEventArgs IVectorChangedEventArgs IVectorChangedEventArgs IVectorChangedEventArgs Interface

Provides data for the changed event of a vector.

Syntax

Declaration

public interface IVectorChangedEventArgspublic interface IVectorChangedEventArgsPublic Interface IVectorChangedEventArgs

Remarks

IVectorChangedEventArgs is specifically used for the VectorChanged event of the IObservableVector<T> interface, via the VectorChangedEventHandler delegate.

.NET developers can get instances of this interface via handling the VectorChanged event from an IObservableVector<T> instance. Even though the remainder of the collection support for IObservableVector<T> uses language projections that change IVector<T> APIs to IList<T> APIs, the VectorChanged event, its delegates and its event data aren't changed by the projection and so "Vector" (as opposed to "List") remains in the API names.

Properties summary

Gets the type of change that occurred in the vector.

Gets the position where the change occurred in the vector.

Properties

  • CollectionChange
    CollectionChange
    CollectionChange
    CollectionChange

    Gets the type of change that occurred in the vector.

    public CollectionChange CollectionChange { get; }public CollectionChange CollectionChange { get; }Public ReadOnly Property CollectionChange As CollectionChange

    Property Value

  • Index
    Index
    Index
    Index

    Gets the position where the change occurred in the vector.

    public uint Index { get; }public uint Index { get; }Public ReadOnly Property Index As uint

    Property Value

    • uint
      uint
      uint
      uint

      The zero-based position where the change occurred in the vector, if applicable.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.FoundationContract (introduced v1)

Attributes

Windows.Foundation.Metadata.GuidAttribute
Windows.Foundation.Metadata.ContractVersionAttribute

Details

Assembly

Windows.Foundation.Collections.dll