SqlNotificationEventArgs Konstruktor
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Skapar en ny instans av SqlNotificationEventArgs objektet.
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)
Parametrar
- type
- SqlNotificationType
SqlNotificationType värde som anger om det här meddelandet genereras på grund av en faktisk ändring eller av prenumerationen.
- info
- SqlNotificationInfo
SqlNotificationInfo värde som anger orsaken till meddelandehändelsen. Detta kan inträffa på grund av att data i arkivet faktiskt har ändrats eller att meddelandet blev ogiltigt (till exempel att tidsgränsen överskrids).
- source
- SqlNotificationSource
SqlNotificationSource värde som anger källan som genererade meddelandet.