SqlCommand.Notification Property

Definition

Gets or sets a value that specifies the SqlNotificationRequest object bound to this command.

C#
[System.ComponentModel.Browsable(false)]
public Microsoft.Data.Sql.SqlNotificationRequest Notification { get; set; }
C#
public Microsoft.Data.Sql.SqlNotificationRequest Notification { get; set; }

Property Value

When set to null (default), no notification should be requested.

Attributes

Remarks

You must set the value for this property before the command is executed for it to take effect.

Applies to

Produkt Verzie
SqlClient .NET Core 1.0, 1.1, 2.0, 2.1, 3.0, 3.1, 4.0, 4.1, 5.0, 5.1, 5.2
SqlClient .NET Framework 1.0, 1.1, 2.0, 2.1, 3.0, 3.1, 4.0, 4.1, 5.0, 5.1, 5.2
SqlClient .NET Standard 1.0, 1.1, 2.0, 2.1, 3.0, 3.1, 4.0, 4.1, 5.0, 5.1, 5.2