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 值,指出產生告知的來源。

適用於

另請參閱