Partilhar via


Evento SyncAgent.StateChanged

Ocorre quando há uma alteração no estado da sessão de sincronização.

Namespace: Microsoft.Synchronization
Assembly: Microsoft.Synchronization.Data (em microsoft.synchronization.data.dll)

Sintaxe

'Declaração
Public Event StateChanged As EventHandler(Of SessionStateChangedEventArgs)
'Uso
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.

Consulte também

Referência

Classe SyncAgent
Membros SyncAgent
Namespace Microsoft.Synchronization