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

適用於

另請參閱