NotificationClass Constructor ()
Default constructor that creates a new instance of the NotificationClass class.
Пространство имен: Microsoft.SqlServer.Management.Nmo
Сборка: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Синтаксис
'Декларация
Public Sub New
public NotificationClass ()
public:
NotificationClass ()
public NotificationClass ()
public function NotificationClass ()
Замечания
Изменения текста5 декабря 2005 г.
Изменения образцов кода5 декабря 2005 г.
If you use the default constructor, you must immediately set the Name property and then set the Parent property. You can then set the other required properties, which are FileGroup, NotificationBatchSize, DigestDelivery, MulticastDelivery, and ExpirationAge. For default values, see the other NotificationClass(Application,String) constructor.
Пример
The following examples show how to use the default constructor to define a notification class and add it to an application:
// Create a NotificationClass and define required properties
NotificationClass flightNotifications = new NotificationClass();
flightNotifications.Name = "FlightNotifications";
flightNotifications.Parent = myApplication;
flightNotifications.FileGroup = "PRIMARY";
flightNotifications.NotificationBatchSize = 0;
flightNotifications.DigestDelivery = false;
flightNotifications.MulticastDelivery = false;
flightNotifications.ExpirationAge = TimeSpan.Zero;
' Create a NotificationClass and define required properties
Dim flightNotifications As NotificationClass = New NotificationClass()
flightNotifications.Name = "FlightNotifications"
flightNotifications.Parent = myApplication
flightNotifications.FileGroup = "PRIMARY"
flightNotifications.NotificationBatchSize = 0
flightNotifications.DigestDelivery = False
flightNotifications.MulticastDelivery = False
flightNotifications.ExpirationAge = TimeSpan.Zero
Платформы
Платформы разработки
Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.
Целевые платформы
Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.
См. также
Справочник
NotificationClass Class
NotificationClass Members
Microsoft.SqlServer.Management.Nmo Namespace