共用方式為


SyncAgent.StateChanged 事件

發生在同步處理工作階段狀態中有變更時。

命名空間: Microsoft.Synchronization
組件: Microsoft.Synchronization.Data (在 microsoft.synchronization.data.dll)

語法

'宣告
Public Event StateChanged As EventHandler(Of SessionStateChangedEventArgs)
'用途
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.

請參閱

參考

SyncAgent 類別
SyncAgent 成員
Microsoft.Synchronization 命名空間