The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
SqlDependency::OnChange Event
.NET Framework (current version)
Occurs when a notification is received for any of the commands associated with this SqlDependency object.
Assembly: System.Data (in System.Data.dll)
OnChange occurs when the results for the associated command change. If you are not using OnChange, you can check the HasChanges property to determine whether the query results have changed.
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.
.NET Framework
Available since 2.0
Available since 2.0
Show: