NotifyCollectionChangedEventArgs Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the NotifyCollectionChangedEventArgs class.
public:
NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, IBindableVector ^ newItems, IBindableVector ^ oldItems, int newIndex, int oldIndex);
NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction const& action, IBindableVector const& newItems, IBindableVector const& oldItems, int const& newIndex, int const& oldIndex);
public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, IList newItems, IList oldItems, int newIndex, int oldIndex);
function NotifyCollectionChangedEventArgs(action, newItems, oldItems, newIndex, oldIndex)
Public Sub New (action As NotifyCollectionChangedAction, newItems As IList, oldItems As IList, newIndex As Integer, oldIndex As Integer)
Parameters
The Action value to report.
- newItems
- IBindableVector IList
The NewItems value to report.
- oldItems
- IBindableVector IList
The OldItems value to report.
- newIndex
-
Int32
int
The NewStartingIndex value to report.
- oldIndex
-
Int32
int
The OldStartingIndex value to report.
Remarks
When programming with .NET, this class is hidden and developers should use the System.Collections.Specialized.NotifyCollectionChangedEventArgs class.
Other than action, any of the values for this constructor can potentially be passed as null, depending on the collection change and corresponding Action being reported.