Share via


SqlCommand.Notification 属性

定义

获取或设置一个指定绑定到此命令的 SqlNotificationRequest 对象的值。

public:
 property Microsoft::Data::Sql::SqlNotificationRequest ^ Notification { Microsoft::Data::Sql::SqlNotificationRequest ^ get(); void set(Microsoft::Data::Sql::SqlNotificationRequest ^ value); };
[System.ComponentModel.Browsable(false)]
public Microsoft.Data.Sql.SqlNotificationRequest Notification { get; set; }
public Microsoft.Data.Sql.SqlNotificationRequest Notification { get; set; }
[<System.ComponentModel.Browsable(false)>]
member this.Notification : Microsoft.Data.Sql.SqlNotificationRequest with get, set
member this.Notification : Microsoft.Data.Sql.SqlNotificationRequest with get, set
Public Property Notification As SqlNotificationRequest

属性值

如果设置为 null(默认值),则不应请求任何通知。

属性

注解

在执行该命令之前,必须设置此属性的值,该命令才能生效。

适用于