NotifyCollectionChangedEventArgs class

Applies to Windows and Windows Phone

Provides the event data for a CollectionChanged event.

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

Inheritance

Object
  NotifyCollectionChangedEventArgs

Syntax


public ref class NotifyCollectionChangedEventArgs 

Attributes

[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06020000)]
[WebHostHidden()]

Members

The NotifyCollectionChangedEventArgs class inherits from Object and INotifyCollectionChangedEventArgs. NotifyCollectionChangedEventArgs also has these types of members:

Constructors

The NotifyCollectionChangedEventArgs class has these constructors.

ConstructorDescription
NotifyCollectionChangedEventArgs Initializes a new instance of the NotifyCollectionChangedEventArgs class.

 

Methods

The NotifyCollectionChangedEventArgs class inherits methods from the Object class.

Properties

The NotifyCollectionChangedEventArgs class has these properties.

PropertyAccess typeDescription

Action

Read-onlyGets the description of the action that caused the event.

NewItems

Read-onlyGets the items affected by an action.

NewStartingIndex

Read-onlyGets the index at which the change occurred.

OldItems

Read-onlyGets the item affected by a Replace or Remove action.

OldStartingIndex

Read-onlyGets the starting index at which a Move, Remove, or Replace action occurred.

 

Remarks

When building Windows Store apps with the Microsoft .NET Framework, this class is hidden and developers should use the System.Collections.Specialized.NotifyCollectionChangedEventArgs class.

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows::UI::Xaml::Interop

Metadata

Windows.winmd

See also

XAML data binding sample

 

 

Show:
© 2014 Microsoft. All rights reserved.