NotifyCollectionChangedEventArgs Constructeurs

Définition

Initialise une nouvelle instance de la classe NotifyCollectionChangedEventArgs.

Surcharges

Nom Description
NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction)

Initialise une nouvelle instance de la NotifyCollectionChangedEventArgs classe qui décrit une Reset modification.

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, IList)

Initialise une nouvelle instance de la NotifyCollectionChangedEventArgs classe qui décrit une modification à plusieurs éléments.

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, Object)

Initialise une nouvelle instance de la NotifyCollectionChangedEventArgs classe qui décrit une modification d’un élément.

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, IList, IList)

Initialise une nouvelle instance de la NotifyCollectionChangedEventArgs classe qui décrit une modification à plusieurs éléments Replace .

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, IList, Int32)

Initialise une nouvelle instance de la NotifyCollectionChangedEventArgs classe qui décrit une modification à plusieurs éléments ou une Reset modification.

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, Object, Int32)

Initialise une nouvelle instance de la NotifyCollectionChangedEventArgs classe qui décrit une modification d’un élément.

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, Object, Object)

Initialise une nouvelle instance de la NotifyCollectionChangedEventArgs classe qui décrit une modification d’un élément Replace .

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, IList, IList, Int32)

Initialise une nouvelle instance de la NotifyCollectionChangedEventArgs classe qui décrit une modification à plusieurs éléments Replace .

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, IList, Int32, Int32)

Initialise une nouvelle instance de la NotifyCollectionChangedEventArgs classe qui décrit une modification à plusieurs éléments Move .

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, Object, Int32, Int32)

Initialise une nouvelle instance de la NotifyCollectionChangedEventArgs classe qui décrit une modification d’un élément Move .

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, Object, Object, Int32)

Initialise une nouvelle instance de la NotifyCollectionChangedEventArgs classe qui décrit une modification d’un élément Replace .

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction)

Initialise une nouvelle instance de la NotifyCollectionChangedEventArgs classe qui décrit une Reset modification.

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)

Paramètres

action
NotifyCollectionChangedAction

Action qui a provoqué l’événement. Sa valeur doit être Reset.

S’applique à

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, IList)

Initialise une nouvelle instance de la NotifyCollectionChangedEventArgs classe qui décrit une modification à plusieurs éléments.

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)

Paramètres

action
NotifyCollectionChangedAction

Action qui a provoqué l’événement. Cela peut être défini sur Reset, Addou Remove.

changedItems
IList

Éléments affectés par la modification.

S’applique à

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, Object)

Initialise une nouvelle instance de la NotifyCollectionChangedEventArgs classe qui décrit une modification d’un élément.

public:
 NotifyCollectionChangedEventArgs(System::Collections::Specialized::NotifyCollectionChangedAction action, System::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)

Paramètres

action
NotifyCollectionChangedAction

Action qui a provoqué l’événement. Cela peut être défini sur Reset, Addou Remove.

changedItem
Object

Élément affecté par la modification.

Exceptions

S’il action n’est pas réinitialisé, ajouter ou supprimer, ou s’il action est réinitialisé et changedItem n’est pas null.

S’applique à

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, IList, IList)

Initialise une nouvelle instance de la NotifyCollectionChangedEventArgs classe qui décrit une modification à plusieurs éléments 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)

Paramètres

action
NotifyCollectionChangedAction

Action qui a provoqué l’événement. Cela ne peut être défini que sur Replace.

newItems
IList

Nouveaux éléments qui remplacent les éléments d’origine.

oldItems
IList

Éléments d’origine remplacés.

Exceptions

Si action ce n’est pas le cas,

Si oldItems ou newItems a la valeur Null.

S’applique à

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, IList, Int32)

Initialise une nouvelle instance de la NotifyCollectionChangedEventArgs classe qui décrit une modification à plusieurs éléments ou une Reset modification.

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)

Paramètres

action
NotifyCollectionChangedAction

Action qui a provoqué l’événement. Cela peut être défini sur Reset, Addou Remove.

changedItems
IList

Éléments affectés par la modification.

startingIndex
Int32

Index où la modification s’est produite.

Exceptions

Si action la réinitialisation, l’ajout ou la suppression action ne sont pas réinitialisés et changedItems n’est pas null ou startingIndex n’est pas -1, ou si l’action est Ajouter ou Supprimer et startingIndex est inférieure à -1.

S’il action s’agit d’ajouter ou de supprimer et changedItems a la valeur Null.

S’applique à

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, Object, Int32)

Initialise une nouvelle instance de la NotifyCollectionChangedEventArgs classe qui décrit une modification d’un élément.

public:
 NotifyCollectionChangedEventArgs(System::Collections::Specialized::NotifyCollectionChangedAction action, System::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)

Paramètres

action
NotifyCollectionChangedAction

Action qui a provoqué l’événement. Cela peut être défini sur Reset, Addou Remove.

changedItem
Object

Élément affecté par la modification.

index
Int32

Index où la modification s’est produite.

Exceptions

S’il action n’est pas réinitialisé, ajouter ou supprimer, ou s’il action est réinitialisé et n’est changedItem pas null ou index n’est pas -1.

S’applique à

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, Object, Object)

Initialise une nouvelle instance de la NotifyCollectionChangedEventArgs classe qui décrit une modification d’un élément 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);
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)

Paramètres

action
NotifyCollectionChangedAction

Action qui a provoqué l’événement. Cela ne peut être défini que sur Replace.

newItem
Object

Nouvel élément qui remplace l’élément d’origine.

oldItem
Object

Élément d’origine remplacé.

Exceptions

Si action ce n’est pas le cas,

S’applique à

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, IList, IList, Int32)

Initialise une nouvelle instance de la NotifyCollectionChangedEventArgs classe qui décrit une modification à plusieurs éléments 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)

Paramètres

action
NotifyCollectionChangedAction

Action qui a provoqué l’événement. Cela ne peut être défini que sur Replace.

newItems
IList

Nouveaux éléments qui remplacent les éléments d’origine.

oldItems
IList

Éléments d’origine remplacés.

startingIndex
Int32

Index du premier élément des éléments en cours de remplacement.

Exceptions

Si action ce n’est pas le cas,

Si oldItems ou newItems a la valeur Null.

S’applique à

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, IList, Int32, Int32)

Initialise une nouvelle instance de la NotifyCollectionChangedEventArgs classe qui décrit une modification à plusieurs éléments 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);
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)

Paramètres

action
NotifyCollectionChangedAction

Action qui a provoqué l’événement. Cela ne peut être défini que sur Move.

changedItems
IList

Éléments affectés par la modification.

index
Int32

Nouvel index pour les éléments modifiés.

oldIndex
Int32

Ancien index des éléments modifiés.

Exceptions

Si action le déplacement n’est pas ou index est inférieur à 0.

S’applique à

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, Object, Int32, Int32)

Initialise une nouvelle instance de la NotifyCollectionChangedEventArgs classe qui décrit une modification d’un élément 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);
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)

Paramètres

action
NotifyCollectionChangedAction

Action qui a provoqué l’événement. Cela ne peut être défini que sur Move.

changedItem
Object

Élément affecté par la modification.

index
Int32

Nouvel index de l’élément modifié.

oldIndex
Int32

Ancien index de l’élément modifié.

Exceptions

Si action le déplacement n’est pas ou index est inférieur à 0.

S’applique à

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, Object, Object, Int32)

Initialise une nouvelle instance de la NotifyCollectionChangedEventArgs classe qui décrit une modification d’un élément 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);
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)

Paramètres

action
NotifyCollectionChangedAction

Action qui a provoqué l’événement. Cette valeur peut être définie sur Replace.

newItem
Object

Nouvel élément qui remplace l’élément d’origine.

oldItem
Object

Élément d’origine remplacé.

index
Int32

Index de l’élément en cours de remplacement.

Exceptions

Si action ce n’est pas le cas,

S’applique à