SqlNotificationEventArgs 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建对象 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 指示生成通知的源的值。