SqlNotificationEventArgs Konstruktor

Definition

Erstellt eine neue Instanz des 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 aufgrund einer tatsächlichen Änderung oder durch das Abonnement generiert wird.

info
SqlNotificationInfo

SqlNotificationInfo wert, der den Grund für das Benachrichtigungsereignis angibt. Dies kann vorkommen, weil die Daten im Speicher tatsächlich geändert wurden oder die Benachrichtigung ungültig wurde (z. B. timeout).

source
SqlNotificationSource

SqlNotificationSource wert, der die Quelle angibt, die die Benachrichtigung generiert hat.

Gilt für:

Weitere Informationen