OnChangeEventHandler 代理人
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
處理 OnChange 事件,這些事件在接收到任何與 SqlDependency 物件關聯之命令的告知時引發。
public delegate void OnChangeEventHandler(System::Object ^ sender, SqlNotificationEventArgs ^ e);
C#
public delegate void OnChangeEventHandler(object sender, SqlNotificationEventArgs e);
type OnChangeEventHandler = delegate of obj * SqlNotificationEventArgs -> unit
Public Delegate Sub OnChangeEventHandler(sender As Object, e As SqlNotificationEventArgs)
- sender
- Object
事件的來源。
包含事件資料的 SqlNotificationEventArgs 物件。
事件 OnChange 不一定表示數據有所變更。 其他情況,例如逾時已過期且無法設定通知要求,也會產生 OnChange。
Get |
取得表示特定委派所代表之方法的物件。 |
產品 | 版本 |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |