NotificationClass.NotificationBatchSize Property

Gets or sets the notification batch size. For notifications not sent using digest delivery, the batch size specifies the maximum number of notifications per batch for the notification class. When using digest delivery, the batch size specifies the number of notification batches that are created.

命名空间: Microsoft.SqlServer.Management.Nmo
程序集: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

语法

声明
Public Property NotificationBatchSize As Integer
public int NotificationBatchSize { get; set; }
public:
property int NotificationBatchSize {
    int get ();
    void set (int value);
}
/** @property */
public int get_NotificationBatchSize ()

/** @property */
public void set_NotificationBatchSize (int value)
public function get NotificationBatchSize () : int

public function set NotificationBatchSize (value : int)

属性值

An Int32 that specifies the notification batch size for the notification class.

备注

NotificationBatchSize must be set to zero or not specified in Standard Edition.

For notifications that are not sent using digest delivery, the NotificationBatchSize value specifies the maximum number of notifications that can be included in a notification batch from a single rule firing. If the number of notifications generated from a single rule firing exceeds the NotificationBatchSize value, Notification Services creates multiple notification batches. Notifications within a notification batch can be considered for multicast delivery.

For digest delivery, NotificationBatchSize specifies the number of notification batches permitted from a single invocation of the generator, not the size of each batch. This is intended for use with large numbers of notifications. If the number of notifications generated is small, the number of notification batches might be different than specified.

示例

The following examples show how to set the notification batch size to 500:

flightNotifications.NotificationBatchSize = 500;
flightNotifications.NotificationBatchSize = 500

线程安全

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

平台

开发平台

有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。

目标平台

有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。

请参阅

参考

NotificationClass Class
NotificationClass Members
Microsoft.SqlServer.Management.Nmo Namespace

其他资源

定义通知类
NotificationBatchSize Element (ADF)
指定通知批次大小