NotifyCollectionChangedEventArgs Constructor (NotifyCollectionChangedAction, Object)

NotifyCollectionChangedEventArgs Constructor (NotifyCollectionChangedAction, Object)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Initializes a new instance of the NotifyCollectionChangedEventArgs class that describes a one-item change.

Namespace:  System.Collections.Specialized
Assembly:  System (in System.dll)

public NotifyCollectionChangedEventArgs(
	NotifyCollectionChangedAction action,
	Object changedItem
)

Parameters

action
Type: System.Collections.Specialized.NotifyCollectionChangedAction
The action that caused the event. This can be set to Reset, Add, or Remove.
changedItem
Type: System.Object
The item that is affected by the change.

ExceptionCondition
ArgumentException

If action is not Reset, Add, or Remove, or if action is Reset and changedItem is not null.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft