SqlNotificationEventArgs Konstruktor

Definition

Erstellt eine neue Instanz eines SqlNotificationEventArgs-Objekts.

public:
 SqlNotificationEventArgs(System::Data::SqlClient::SqlNotificationType type, System::Data::SqlClient::SqlNotificationInfo info, System::Data::SqlClient::SqlNotificationSource source);
public SqlNotificationEventArgs (System.Data.SqlClient.SqlNotificationType type, System.Data.SqlClient.SqlNotificationInfo info, System.Data.SqlClient.SqlNotificationSource source);
new System.Data.SqlClient.SqlNotificationEventArgs : System.Data.SqlClient.SqlNotificationType * System.Data.SqlClient.SqlNotificationInfo * System.Data.SqlClient.SqlNotificationSource -> System.Data.SqlClient.SqlNotificationEventArgs
Public Sub New (type As SqlNotificationType, info As SqlNotificationInfo, source As SqlNotificationSource)

Parameter

type
SqlNotificationType

SqlNotificationType-Wert, der angibt, ob diese Benachrichtigung wegen einer tatsächlichen Änderung oder durch das Abonnement generiert wird.

info
SqlNotificationInfo

SqlNotificationInfo-Wert, der die Ursache für das Benachrichtigungsereignis angibt. Das Ereignis tritt auf, wenn sich die Daten im Speicher tatsächlich geändert haben oder die Benachrichtigung ungültig wurde (z. B. durch Zeitüberschreitung).

source
SqlNotificationSource

SqlNotificationSource-Wert, der die Quelle angibt, die die Benachrichtigung generiert hat.

Gilt für:

Weitere Informationen