共用方式為


SyncOrchestrator.StateChanged 事件

State 變更時發生。

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

語法

'宣告
Public Event StateChanged As EventHandler(Of SyncOrchestratorStateChangedEventArgs)
'用途
Dim instance As SyncOrchestrator
Dim handler As EventHandler(Of SyncOrchestratorStateChangedEventArgs)

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

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

請參閱

參考

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