SqlNotificationEventArgs 构造函数

定义

创建对象 SqlNotificationEventArgs 的新实例。

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)

参数

type
SqlNotificationType

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

info
SqlNotificationInfo

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

source
SqlNotificationSource

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

适用于

另请参阅