OnChangeEventHandler Delegato

Definizione

Gestisce l'evento OnChange generato quando viene ricevuta una notifica per uno dei comandi associati a un SqlDependency oggetto .

public delegate void OnChangeEventHandler(System::Object ^ sender, SqlNotificationEventArgs ^ e);
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)

Parametri

sender
Object

La fonte dell'evento.

e
SqlNotificationEventArgs

Oggetto SqlNotificationEventArgs che contiene i dati dell'evento.

Commenti

L'evento OnChange non implica necessariamente una modifica nei dati. Altre circostanze, ad esempio il timeout scaduto e l'impossibilità di impostare la richiesta di notifica, generano OnChangeanche .

Metodi di estensione

Nome Descrizione
GetMethodInfo(Delegate)

Ottiene un oggetto che rappresenta il metodo rappresentato dal delegato specificato.

Si applica a

Vedi anche