Edit

Share via


OnChangeEventHandler Delegate

Definition

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.

C#
public delegate void OnChangeEventHandler(object sender, SqlNotificationEventArgs e);
C#
[System.Obsolete("Use the Microsoft.Data.SqlClient package instead.")]
public delegate void OnChangeEventHandler(object sender, SqlNotificationEventArgs e);

Parameters

sender
Object

The source of the event.

e
SqlNotificationEventArgs

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

Product Versions (Obsolete)
.NET 6 (package-provided) (7 (package-provided), 8 (package-provided), 9 (package-provided))
.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 (4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided))
.NET Standard (2.0 (package-provided))

See also