NotifyCollectionChangedEventArgs Constructeurs

Définition

Initialise une nouvelle instance de la classe NotifyCollectionChangedEventArgs.

Surcharges

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction)

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

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, IList)

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

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, Object)

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

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, IList, IList)

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

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, IList, Int32)

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

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, Object, Int32)

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

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, Object, Object)

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

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, IList, IList, Int32)

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

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, IList, Int32, Int32)

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

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, Object, Int32, Int32)

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

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, Object, Object, Int32)

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

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction)

Source:
NotifyCollectionChangedEventArgs.cs
Source:
NotifyCollectionChangedEventArgs.cs
Source:
NotifyCollectionChangedEventArgs.cs

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

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)

Source:
NotifyCollectionChangedEventArgs.cs
Source:
NotifyCollectionChangedEventArgs.cs
Source:
NotifyCollectionChangedEventArgs.cs

Initialise une nouvelle instance de la classe NotifyCollectionChangedEventArgs qui décrit une modification de 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);
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. Il peut s’agir de Reset, Add ou Remove.

changedItems
IList

Éléments qui sont affectés par la modification.

S’applique à

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, Object)

Source:
NotifyCollectionChangedEventArgs.cs
Source:
NotifyCollectionChangedEventArgs.cs
Source:
NotifyCollectionChangedEventArgs.cs

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

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)

Paramètres

action
NotifyCollectionChangedAction

Action qui a provoqué l’événement. Il peut s’agir de Reset, Add ou Remove.

changedItem
Object

Élément affecté par la modification.

Exceptions

Si action n’est pas Reset, Add ou Remove, ou si action est Reset et que changedItem n’est pas null.

S’applique à

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, IList, IList)

Source:
NotifyCollectionChangedEventArgs.cs
Source:
NotifyCollectionChangedEventArgs.cs
Source:
NotifyCollectionChangedEventArgs.cs

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

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. La seule valeur possible est Replace.

newItems
IList

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

oldItems
IList

Éléments d’origine qui sont remplacés.

Exceptions

Si action n’a pas la valeur Replace.

Si oldItems ou newItems a la valeur null.

S’applique à

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, IList, Int32)

Source:
NotifyCollectionChangedEventArgs.cs
Source:
NotifyCollectionChangedEventArgs.cs
Source:
NotifyCollectionChangedEventArgs.cs

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

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)

Paramètres

action
NotifyCollectionChangedAction

Action qui a provoqué l’événement. Il peut s’agir de Reset, Add ou Remove.

changedItems
IList

Éléments affectés par la modification.

startingIndex
Int32

Index où la modification s’est produite.

Exceptions

Si action n’est pas Reset, Add ou Remove, si action est Reset et soit changedItems n’est pas null soit startingIndex n’est pas -1, ou si l’action est Add ou Remove et startingIndex est inférieur à -1.

Si action est Add ou Remove et changedItems a la valeur null.

S’applique à

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, Object, Int32)

Source:
NotifyCollectionChangedEventArgs.cs
Source:
NotifyCollectionChangedEventArgs.cs
Source:
NotifyCollectionChangedEventArgs.cs

Initialise une nouvelle instance de la classe NotifyCollectionChangedEventArgs qui décrit une modification d’un seul é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);
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. Il peut s’agir de Reset, Add ou Remove.

changedItem
Object

Élément affecté par la modification.

index
Int32

Index où la modification s’est produite.

Exceptions

Si action n’est pas Reset, Add ou Remove, ou si action est Reset et que changedItems n’est pas null ou index n’est pas -1.

S’applique à

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, Object, Object)

Source:
NotifyCollectionChangedEventArgs.cs
Source:
NotifyCollectionChangedEventArgs.cs
Source:
NotifyCollectionChangedEventArgs.cs

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

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)

Paramètres

action
NotifyCollectionChangedAction

Action qui a provoqué l’événement. La seule valeur possible est Replace.

newItem
Object

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

oldItem
Object

Élément d’origine qui est remplacé.

Exceptions

Si action n’a pas la valeur Replace.

S’applique à

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, IList, IList, Int32)

Source:
NotifyCollectionChangedEventArgs.cs
Source:
NotifyCollectionChangedEventArgs.cs
Source:
NotifyCollectionChangedEventArgs.cs

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

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. La seule valeur possible est Replace.

newItems
IList

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

oldItems
IList

Éléments d’origine qui sont remplacés.

startingIndex
Int32

Index du premier des éléments remplacés.

Exceptions

Si action n’a pas la valeur Replace.

Si oldItems ou newItems a la valeur null.

S’applique à

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, IList, Int32, Int32)

Source:
NotifyCollectionChangedEventArgs.cs
Source:
NotifyCollectionChangedEventArgs.cs
Source:
NotifyCollectionChangedEventArgs.cs

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

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)

Paramètres

action
NotifyCollectionChangedAction

Action qui a provoqué l’événement. La seule valeur possible est Move.

changedItems
IList

Éléments affectés par la modification.

index
Int32

Nouvel index des éléments modifiés.

oldIndex
Int32

Ancien index des éléments modifiés.

Exceptions

Si action n’a pas la valeur Move ou si index est inférieur à 0.

S’applique à

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, Object, Int32, Int32)

Source:
NotifyCollectionChangedEventArgs.cs
Source:
NotifyCollectionChangedEventArgs.cs
Source:
NotifyCollectionChangedEventArgs.cs

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

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)

Paramètres

action
NotifyCollectionChangedAction

Action qui a provoqué l’événement. La seule valeur possible est 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 n’a pas la valeur Move ou si index est inférieur à 0.

S’applique à

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, Object, Object, Int32)

Source:
NotifyCollectionChangedEventArgs.cs
Source:
NotifyCollectionChangedEventArgs.cs
Source:
NotifyCollectionChangedEventArgs.cs

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

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)

Paramètres

action
NotifyCollectionChangedAction

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

newItem
Object

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

oldItem
Object

Élément d’origine qui est remplacé.

index
Int32

Index de l’élément remplacé.

Exceptions

Si action n’a pas la valeur Replace.

S’applique à