共用方式為


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);
}
member StateChanged : IEvent<EventHandler<SessionStateChangedEventArgs>,
    SessionStateChangedEventArgs>

請參閱

參考

SyncAgent類別

SyncAgent 成員

Microsoft.Synchronization 命名空間