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.
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.
| Exception | Condition |
|---|---|
| ArgumentException | If action is not Reset, Add, or Remove, or if action is Reset and changedItem is not null. |
Show: