NotifyCollectionChangedEventArgs Constructor (NotifyCollectionChangedAction, Object)

May 11, 2014

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:
© 2014 Microsoft