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.