OnChangeEventHandler Delegate
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
Use the Microsoft.Data.SqlClient package instead.
Handles the OnChange event that is fired when a notification is received for any of the commands associated with a SqlDependency object.
public delegate void OnChangeEventHandler(System::Object ^ sender, SqlNotificationEventArgs ^ e);
public delegate void OnChangeEventHandler(object sender, SqlNotificationEventArgs e);
[System.Obsolete("Use the Microsoft.Data.SqlClient package instead.")]
public delegate void OnChangeEventHandler(object sender, SqlNotificationEventArgs e);
type OnChangeEventHandler = delegate of obj * SqlNotificationEventArgs -> unit
[<System.Obsolete("Use the Microsoft.Data.SqlClient package instead.")>]
type OnChangeEventHandler = delegate of obj * SqlNotificationEventArgs -> unit
Public Delegate Sub OnChangeEventHandler(sender As Object, e As SqlNotificationEventArgs)
Parameters
- sender
- Object
The source of the event.
A SqlNotificationEventArgs object that contains the event data.
- Attributes
Remarks
The OnChange event does not necessarily imply a change in the data. Other circumstances, such as time-out expired and failure to set the notification request, also generate OnChange.
Extension Methods
GetMethodInfo(Delegate) |
Gets an object that represents the method represented by the specified delegate. |
Applies to
See also
.NET