NotifyCollectionChangedEventArgs Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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. |