NotifyCollectionChangedEventArgs Konstruktor
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Menginisialisasi instans baru kelas NotifyCollectionChangedEventArgs.
Overload
NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction)
Menginisialisasi instans NotifyCollectionChangedEventArgs baru kelas yang menjelaskan Reset perubahan.
public:
NotifyCollectionChangedEventArgs(System::Collections::Specialized::NotifyCollectionChangedAction action);
public NotifyCollectionChangedEventArgs (System.Collections.Specialized.NotifyCollectionChangedAction action);
new System.Collections.Specialized.NotifyCollectionChangedEventArgs : System.Collections.Specialized.NotifyCollectionChangedAction -> System.Collections.Specialized.NotifyCollectionChangedEventArgs
Public Sub New (action As NotifyCollectionChangedAction)
Parameter
Tindakan yang menyebabkan peristiwa. Ini harus diatur ke Reset.
Berlaku untuk
NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, IList)
Menginisialisasi instans NotifyCollectionChangedEventArgs baru kelas yang menjelaskan perubahan multi-item.
public:
NotifyCollectionChangedEventArgs(System::Collections::Specialized::NotifyCollectionChangedAction action, System::Collections::IList ^ changedItems);
public NotifyCollectionChangedEventArgs (System.Collections.Specialized.NotifyCollectionChangedAction action, System.Collections.IList changedItems);
public NotifyCollectionChangedEventArgs (System.Collections.Specialized.NotifyCollectionChangedAction action, System.Collections.IList? changedItems);
new System.Collections.Specialized.NotifyCollectionChangedEventArgs : System.Collections.Specialized.NotifyCollectionChangedAction * System.Collections.IList -> System.Collections.Specialized.NotifyCollectionChangedEventArgs
Public Sub New (action As NotifyCollectionChangedAction, changedItems As IList)
Parameter
- changedItems
- IList
Item yang terpengaruh oleh perubahan.
Berlaku untuk
NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, Object)
Menginisialisasi instans NotifyCollectionChangedEventArgs baru kelas yang menjelaskan perubahan satu item.
public:
NotifyCollectionChangedEventArgs(System::Collections::Specialized::NotifyCollectionChangedAction action, System::Object ^ changedItem);
public NotifyCollectionChangedEventArgs (System.Collections.Specialized.NotifyCollectionChangedAction action, object changedItem);
public NotifyCollectionChangedEventArgs (System.Collections.Specialized.NotifyCollectionChangedAction action, object? changedItem);
new System.Collections.Specialized.NotifyCollectionChangedEventArgs : System.Collections.Specialized.NotifyCollectionChangedAction * obj -> System.Collections.Specialized.NotifyCollectionChangedEventArgs
Public Sub New (action As NotifyCollectionChangedAction, changedItem As Object)
Parameter
- changedItem
- Object
Item yang terpengaruh oleh perubahan.
Pengecualian
Jika action
tidak Reset, Tambahkan, atau Hapus, atau jika action
diatur ulang dan changedItem
bukan null.
Berlaku untuk
NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, IList, IList)
Menginisialisasi instans NotifyCollectionChangedEventArgs baru kelas yang menjelaskan perubahan multi-item Replace .
public:
NotifyCollectionChangedEventArgs(System::Collections::Specialized::NotifyCollectionChangedAction action, System::Collections::IList ^ newItems, System::Collections::IList ^ oldItems);
public NotifyCollectionChangedEventArgs (System.Collections.Specialized.NotifyCollectionChangedAction action, System.Collections.IList newItems, System.Collections.IList oldItems);
new System.Collections.Specialized.NotifyCollectionChangedEventArgs : System.Collections.Specialized.NotifyCollectionChangedAction * System.Collections.IList * System.Collections.IList -> System.Collections.Specialized.NotifyCollectionChangedEventArgs
Public Sub New (action As NotifyCollectionChangedAction, newItems As IList, oldItems As IList)
Parameter
Tindakan yang menyebabkan peristiwa. Ini hanya dapat diatur ke Replace.
- newItems
- IList
Item baru yang menggantikan item asli.
- oldItems
- IList
Item asli yang diganti.
Pengecualian
Jika action
bukan Ganti.
Jika oldItems
atau newItems
null.
Berlaku untuk
NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, IList, Int32)
Menginisialisasi instans NotifyCollectionChangedEventArgs baru kelas yang menjelaskan perubahan multi-item atau Reset perubahan.
public:
NotifyCollectionChangedEventArgs(System::Collections::Specialized::NotifyCollectionChangedAction action, System::Collections::IList ^ changedItems, int startingIndex);
public NotifyCollectionChangedEventArgs (System.Collections.Specialized.NotifyCollectionChangedAction action, System.Collections.IList changedItems, int startingIndex);
public NotifyCollectionChangedEventArgs (System.Collections.Specialized.NotifyCollectionChangedAction action, System.Collections.IList? changedItems, int startingIndex);
new System.Collections.Specialized.NotifyCollectionChangedEventArgs : System.Collections.Specialized.NotifyCollectionChangedAction * System.Collections.IList * int -> System.Collections.Specialized.NotifyCollectionChangedEventArgs
Public Sub New (action As NotifyCollectionChangedAction, changedItems As IList, startingIndex As Integer)
Parameter
- changedItems
- IList
Item yang terpengaruh oleh perubahan.
- startingIndex
- Int32
Indeks tempat perubahan terjadi.
Pengecualian
Jika action
bukan Reset, Tambahkan, atau Hapus, jika action
Diatur Ulang dan changedItems
bukan null atau startingIndex
bukan -1, atau jika tindakan adalah Tambahkan atau Hapus dan startingIndex
kurang dari -1.
Jika action
adalah Tambahkan atau Hapus dan changedItems
null.
Berlaku untuk
NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, Object, Int32)
Menginisialisasi instans NotifyCollectionChangedEventArgs baru kelas yang menjelaskan perubahan satu item.
public:
NotifyCollectionChangedEventArgs(System::Collections::Specialized::NotifyCollectionChangedAction action, System::Object ^ changedItem, int index);
public NotifyCollectionChangedEventArgs (System.Collections.Specialized.NotifyCollectionChangedAction action, object changedItem, int index);
public NotifyCollectionChangedEventArgs (System.Collections.Specialized.NotifyCollectionChangedAction action, object? changedItem, int index);
new System.Collections.Specialized.NotifyCollectionChangedEventArgs : System.Collections.Specialized.NotifyCollectionChangedAction * obj * int -> System.Collections.Specialized.NotifyCollectionChangedEventArgs
Public Sub New (action As NotifyCollectionChangedAction, changedItem As Object, index As Integer)
Parameter
- changedItem
- Object
Item yang terpengaruh oleh perubahan.
- index
- Int32
Indeks tempat perubahan terjadi.
Pengecualian
Jika action
tidak Reset, Tambahkan, atau Hapus, atau jika action
reset dan changedItems
bukan null atau index
bukan -1.
Berlaku untuk
NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, Object, Object)
Menginisialisasi instans NotifyCollectionChangedEventArgs baru kelas yang menjelaskan perubahan satu item Replace .
public:
NotifyCollectionChangedEventArgs(System::Collections::Specialized::NotifyCollectionChangedAction action, System::Object ^ newItem, System::Object ^ oldItem);
public NotifyCollectionChangedEventArgs (System.Collections.Specialized.NotifyCollectionChangedAction action, object newItem, object oldItem);
public NotifyCollectionChangedEventArgs (System.Collections.Specialized.NotifyCollectionChangedAction action, object? newItem, object? oldItem);
new System.Collections.Specialized.NotifyCollectionChangedEventArgs : System.Collections.Specialized.NotifyCollectionChangedAction * obj * obj -> System.Collections.Specialized.NotifyCollectionChangedEventArgs
Public Sub New (action As NotifyCollectionChangedAction, newItem As Object, oldItem As Object)
Parameter
Tindakan yang menyebabkan peristiwa. Ini hanya dapat diatur ke Replace.
- newItem
- Object
Item baru yang menggantikan item asli.
- oldItem
- Object
Item asli yang diganti.
Pengecualian
Jika action
bukan Ganti.
Berlaku untuk
NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, IList, IList, Int32)
Menginisialisasi instans NotifyCollectionChangedEventArgs baru kelas yang menjelaskan perubahan multi-item Replace .
public:
NotifyCollectionChangedEventArgs(System::Collections::Specialized::NotifyCollectionChangedAction action, System::Collections::IList ^ newItems, System::Collections::IList ^ oldItems, int startingIndex);
public NotifyCollectionChangedEventArgs (System.Collections.Specialized.NotifyCollectionChangedAction action, System.Collections.IList newItems, System.Collections.IList oldItems, int startingIndex);
new System.Collections.Specialized.NotifyCollectionChangedEventArgs : System.Collections.Specialized.NotifyCollectionChangedAction * System.Collections.IList * System.Collections.IList * int -> System.Collections.Specialized.NotifyCollectionChangedEventArgs
Public Sub New (action As NotifyCollectionChangedAction, newItems As IList, oldItems As IList, startingIndex As Integer)
Parameter
Tindakan yang menyebabkan peristiwa. Ini hanya dapat diatur ke Replace.
- newItems
- IList
Item baru yang menggantikan item asli.
- oldItems
- IList
Item asli yang diganti.
- startingIndex
- Int32
Indeks item pertama item yang sedang diganti.
Pengecualian
Jika action
bukan Ganti.
Jika oldItems
atau newItems
null.
Berlaku untuk
NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, IList, Int32, Int32)
Menginisialisasi instans NotifyCollectionChangedEventArgs baru kelas yang menjelaskan perubahan multi-item Move .
public:
NotifyCollectionChangedEventArgs(System::Collections::Specialized::NotifyCollectionChangedAction action, System::Collections::IList ^ changedItems, int index, int oldIndex);
public NotifyCollectionChangedEventArgs (System.Collections.Specialized.NotifyCollectionChangedAction action, System.Collections.IList changedItems, int index, int oldIndex);
public NotifyCollectionChangedEventArgs (System.Collections.Specialized.NotifyCollectionChangedAction action, System.Collections.IList? changedItems, int index, int oldIndex);
new System.Collections.Specialized.NotifyCollectionChangedEventArgs : System.Collections.Specialized.NotifyCollectionChangedAction * System.Collections.IList * int * int -> System.Collections.Specialized.NotifyCollectionChangedEventArgs
Public Sub New (action As NotifyCollectionChangedAction, changedItems As IList, index As Integer, oldIndex As Integer)
Parameter
Tindakan yang menyebabkan peristiwa. Ini hanya dapat diatur ke Move.
- changedItems
- IList
Item yang terpengaruh oleh perubahan.
- index
- Int32
Indeks baru untuk item yang diubah.
- oldIndex
- Int32
Indeks lama untuk item yang diubah.
Pengecualian
Jika action
tidak Pindahkan atau index
kurang dari 0.
Berlaku untuk
NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, Object, Int32, Int32)
Menginisialisasi instans NotifyCollectionChangedEventArgs baru kelas yang menjelaskan perubahan satu item Move .
public:
NotifyCollectionChangedEventArgs(System::Collections::Specialized::NotifyCollectionChangedAction action, System::Object ^ changedItem, int index, int oldIndex);
public NotifyCollectionChangedEventArgs (System.Collections.Specialized.NotifyCollectionChangedAction action, object changedItem, int index, int oldIndex);
public NotifyCollectionChangedEventArgs (System.Collections.Specialized.NotifyCollectionChangedAction action, object? changedItem, int index, int oldIndex);
new System.Collections.Specialized.NotifyCollectionChangedEventArgs : System.Collections.Specialized.NotifyCollectionChangedAction * obj * int * int -> System.Collections.Specialized.NotifyCollectionChangedEventArgs
Public Sub New (action As NotifyCollectionChangedAction, changedItem As Object, index As Integer, oldIndex As Integer)
Parameter
Tindakan yang menyebabkan peristiwa. Ini hanya dapat diatur ke Move.
- changedItem
- Object
Item yang dipengaruhi oleh perubahan.
- index
- Int32
Indeks baru untuk item yang diubah.
- oldIndex
- Int32
Indeks lama untuk item yang diubah.
Pengecualian
Jika action
tidak Pindahkan atau index
kurang dari 0.
Berlaku untuk
NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, Object, Object, Int32)
Menginisialisasi instans NotifyCollectionChangedEventArgs baru kelas yang menjelaskan perubahan satu item Replace .
public:
NotifyCollectionChangedEventArgs(System::Collections::Specialized::NotifyCollectionChangedAction action, System::Object ^ newItem, System::Object ^ oldItem, int index);
public NotifyCollectionChangedEventArgs (System.Collections.Specialized.NotifyCollectionChangedAction action, object newItem, object oldItem, int index);
public NotifyCollectionChangedEventArgs (System.Collections.Specialized.NotifyCollectionChangedAction action, object? newItem, object? oldItem, int index);
new System.Collections.Specialized.NotifyCollectionChangedEventArgs : System.Collections.Specialized.NotifyCollectionChangedAction * obj * obj * int -> System.Collections.Specialized.NotifyCollectionChangedEventArgs
Public Sub New (action As NotifyCollectionChangedAction, newItem As Object, oldItem As Object, index As Integer)
Parameter
Tindakan yang menyebabkan peristiwa. Ini dapat diatur ke Replace.
- newItem
- Object
Item baru yang menggantikan item asli.
- oldItem
- Object
Item asli yang diganti.
- index
- Int32
Indeks item yang diganti.
Pengecualian
Jika action
bukan Ganti.