Share via


SqlNotificationEventArgs 构造函数

定义

创建 SqlNotificationEventArgs 对象的新实例。

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

参数

type
SqlNotificationType

SqlNotificationType 值,指示此通知是由于实际更改生成的还是通过订阅生成的。

info
SqlNotificationInfo

指示通知事件的原因的 SqlNotificationInfo 值。 发生的原因可能是:实际更改了存储区中的数据,或者通知变为无效(例如,它已超时)。

source
SqlNotificationSource

SqlNotificationSource 值,指示生成通知的源。

适用于