System.Data.SqlClient.SqlNotificationType Enumeration

Describes the different notification types that can be received by an System.Data.SqlClient.OnChangeEventHandler event handler through the System.Data.SqlClient.SqlNotificationEventArgs parameter.

Syntax

public enum SqlNotificationType

Remarks

The System.Data.SqlClient.SqlNotificationType enumeration is referenced by an instance of the System.Data.SqlClient.SqlNotificationEventArgs class. This information is provided when a notification event is fired with the System.Data.SqlClient.SqlDependency class.

Members

Member NameDescription
Change

Data on the server being monitored changed. Use the System.Data.SqlClient.SqlNotificationInfo item to determine the details of the change.

Subscribe

There was a failure to create a notification subscription. Use the System.Data.SqlClient.SqlNotificationEventArgs object's System.Data.SqlClient.SqlNotificationInfo item to determine the cause of the failure.

Unknown

Used when the type option sent by the server was not recognized by the client.

Requirements

Namespace: System.Data.SqlClient
Assembly: System.Data (in System.Data.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0