共用方式為


SyncAgent.SessionProgress 事件

在同步處理期間發生:在用戶端讀取中繼資料 (Metadata) 之後、寫入中繼資料之後、下載變更之後,以及上傳變更之後。

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

語法

'宣告
Public Event SessionProgress As EventHandler(Of SessionProgressEventArgs)
'用途
Dim instance As SyncAgent
Dim handler As EventHandler(Of SessionProgressEventArgs)

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

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

請參閱

參考

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