Udostępnij za pośrednictwem


NotifyCollectionChangedEventArgs Class

Definition

Provides the event data for a CollectionChanged event.

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

/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 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(Windows.Foundation.UniversalApiContract), 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

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

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