NotifyCollectionChangedEventArgs Class

Definition

Provides the event data for a CollectionChanged event.

.NET This class appears as System.Collections.Specialized.NotifyCollectionChangedEventArgs.

/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class NotifyCollectionChangedEventArgs
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public class NotifyCollectionChangedEventArgs
Public Class NotifyCollectionChangedEventArgs
Inheritance
Object IInspectable NotifyCollectionChangedEventArgs
Attributes

Remarks

When programming with .NET, this class is hidden and developers should use the System.Collections.Specialized.NotifyCollectionChangedEventArgs class.

Constructors

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, IBindableVector, IBindableVector, Int32, Int32)

Initializes a new instance of the NotifyCollectionChangedEventArgs class.

Properties

Action

Gets the description of the action that caused the event.

NewItems

Gets the items affected by an action.

NewStartingIndex

Gets the index at which the change occurred.

OldItems

Gets the item affected by a Replace or Remove action.

OldStartingIndex

Gets the starting index at which a Move, Remove, or Replace action occurred.

Applies to

See also