共用方式為


OnSessionStateChanged 方法

引發 StateChanged 事件。

命名空間:  Microsoft.Synchronization
組件:  Microsoft.Synchronization.Data (在 Microsoft.Synchronization.Data.dll 中)

語法

'宣告
Protected Overridable Sub OnSessionStateChanged ( _
    value As SessionStateChangedEventArgs _
)
'用途
Dim value As SessionStateChangedEventArgs

Me.OnSessionStateChanged(value)
protected virtual void OnSessionStateChanged(
    SessionStateChangedEventArgs value
)
protected:
virtual void OnSessionStateChanged(
    SessionStateChangedEventArgs^ value
)
abstract OnSessionStateChanged : 
        value:SessionStateChangedEventArgs -> unit 
override OnSessionStateChanged : 
        value:SessionStateChangedEventArgs -> unit 
protected function OnSessionStateChanged(
    value : SessionStateChangedEventArgs
)

參數

請參閱

參考

SyncAgent類別

SyncAgent 成員

Microsoft.Synchronization 命名空間