NotifyCollectionChangedEventArgs Constructor (NotifyCollectionChangedAction)
[ 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, specifying the NotifyCollectionChangedAction value.
Assembly: System (in System.dll)
Parameters
- action
- Type: System.Collections.Specialized.NotifyCollectionChangedAction
The action value, as a value of the enumeration. This should always be Reset; see Remarks.
| Exception | Condition |
|---|---|
| NotSupportedException | action is not Reset. |
Reset is the only valid action that can be passed to this constructor signature. After construction, NotifyCollectionChangedEventArgs properties are immutable, and only the Reset action does not require additional information such as the index where the change happened.