Freigeben über


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.

Namespace: Microsoft.SqlServer.Management.Nmo
Assembly : Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Syntax

'Declaration
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)

Eigenschaftswert

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

Hinweise

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.

Beispiel

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

flightNotifications.NotificationBatchSize = 500;
flightNotifications.NotificationBatchSize = 500

Threadsicherheit

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.

Plattformen

Entwicklungsplattformen

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Zielplattforme

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Siehe auch

Verweis

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

Andere Ressourcen

Definieren von Benachrichtigungsklassen
NotificationBatchSize Element (ADF)
Angeben einer Benachrichtigungsbatchgröße