SqlDependency.OnChange Event
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.
Occurs when a notification is received for any of the commands associated with this SqlDependency object.
public:
event System::Data::SqlClient::OnChangeEventHandler ^ OnChange;
public event System.Data.SqlClient.OnChangeEventHandler OnChange;
member this.OnChange : System.Data.SqlClient.OnChangeEventHandler
Public Custom Event OnChange As OnChangeEventHandler
Event Type
Remarks
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.
Applies to
See also
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για