Поделиться через


Application.Generator Property

Gets or sets the Generator for the application.

Пространство имен: Microsoft.SqlServer.Management.Nmo
Сборка: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Синтаксис

'Декларация
Public Property Generator As Generator
public Generator Generator { get; set; }
public:
property Generator^ Generator {
    Generator^ get ();
    void set (Generator^ value);
}
/** @property */
public Generator get_Generator ()

/** @property */
public void set_Generator (Generator value)
public function get Generator () : Generator

public function set Generator (value : Generator)

Значение свойства

A Generator object, which is the generator for the application.

Замечания

Each application has only one generator, which governs rule processing for a notification application.

Пример

The following example shows how to define the application's generator:

// Define generator for application
Generator generator = new Generator(myApplication, "Generator");
generator.SystemName = notificationServicesHost;
generator.ThreadPoolSize = 0;
myApplication.Generator = generator;
' Define generator for application
Dim generator As Generator = New Generator( _
    myApplication, "Generator")
generator.SystemName = notificationServicesHost
generator.ThreadPoolSize = 0
myApplication.Generator = generator

Синхронизация потоков

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.

Платформы

Платформы разработки

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

Целевые платформы

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

См. также

Справочник

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

Другие ресурсы

Указание параметров генератора
Generator Element (ADF)