Partager via


Événement SyncAgent.StateChanged

Se produit lors de la modification de l'état de la session de synchronisation.

Espace de noms: Microsoft.Synchronization
Assembly: Microsoft.Synchronization.Data (dans microsoft.synchronization.data.dll)

Syntaxe

'Déclaration
Public Event StateChanged As EventHandler(Of SessionStateChangedEventArgs)
'Utilisation
Dim instance As SyncAgent
Dim handler As EventHandler(Of SessionStateChangedEventArgs)

AddHandler instance.StateChanged, handler
public event EventHandler<SessionStateChangedEventArgs> StateChanged
public:
event EventHandler<SessionStateChangedEventArgs^>^ StateChanged {
    void add (EventHandler<SessionStateChangedEventArgs^>^ value);
    void remove (EventHandler<SessionStateChangedEventArgs^>^ value);
}
/** @event */
public void add_StateChanged (EventHandler<SessionStateChangedEventArgs> value)

/** @event */
public void remove_StateChanged (EventHandler<SessionStateChangedEventArgs> value)
JScript supports the use of events, but not the declaration of new ones.

Voir aussi

Référence

Classe SyncAgent
Membres SyncAgent
Espace de noms Microsoft.Synchronization