NotifyCollectionChangedEventArgs 构造函数

定义

初始化 NotifyCollectionChangedEventArgs 类的新实例。

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)

参数

newItems
IBindableVector IList

要报告的 NewItems 值。

oldItems
IBindableVector IList

要报告的 OldItems 值。

newIndex
Int32

int

要报告的 NewStartingIndex 值。

oldIndex
Int32

int

要报告的 OldStartingIndex 值。

注解

使用 .NET 编程时,此类是隐藏的,开发人员应使用 System.Collections.Specialized.NotifyCollectionChangedEventArgs 类。

除了 操作之外,此构造函数的任何值都可能作为 null 传递,具体取决于所报告的集合更改和相应的 操作

适用于

另请参阅