共用方式為


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)
指定通知批次大小