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 表示產生通知來源的值。