Redigera

Dela via


SqlNotificationEventArgs Constructor

Definition

Creates a new instance of the SqlNotificationEventArgs object.

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)

Parameters

type
SqlNotificationType

SqlNotificationType value that indicates whether this notification is generated because of an actual change, or by the subscription.

info
SqlNotificationInfo

SqlNotificationInfo value that indicates the reason for the notification event. This may occur because the data in the store actually changed, or the notification became invalid (for example, it timed out).

source
SqlNotificationSource

SqlNotificationSource value that indicates the source that generated the notification.

Applies to

See also