Share via


Application.Generator Property

Gets or sets the Generator for the application.

Espace de noms: Microsoft.SqlServer.Management.Nmo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Syntaxe

'Déclaration
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)

Valeur de propriété

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

Notes

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

Exemple

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

Sécurité des threads

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.

Plateformes

Plateformes de développement

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Plateformes cibles

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Voir aussi

Référence

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

Autres ressources

Spécification des paramètres de générateur
Generator Element (ADF)