SyncAgent.StateChanged Event

Occurs when there is a change in the synchronization session state.

This event is not CLS-compliant.  

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

Syntax

'Declaration
<CLSCompliantAttribute(False)> _
Public Event StateChanged As EventHandler(Of SessionStateChangedEventArgs)
'Usage
Dim instance As SyncAgent
Dim handler As EventHandler(Of SessionStateChangedEventArgs)

AddHandler instance.StateChanged, handler
[CLSCompliantAttribute(false)] 
public event EventHandler<SessionStateChangedEventArgs> StateChanged
[CLSCompliantAttribute(false)] 
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.

See Also

Reference

SyncAgent Class
SyncAgent Members
Microsoft.Synchronization Namespace