Generator.SystemName Property

Gets or sets the name of the server on which the generator runs.

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

Syntaxe

'Déclaration
Public Property SystemName As String
public string SystemName { get; set; }
public:
property String^ SystemName {
    String^ get ();
    void set (String^ value);
}
/** @property */
public String get_SystemName ()

/** @property */
public void set_SystemName (String value)
public function get SystemName () : String

public function set SystemName (value : String)

Valeur de propriété

A String, between 1 and 255 characters in length, that specifies the name of the generator's server.

Notes

The following are not allowed as the system name: localhost, ., an IP address, or any string containing a backslash character.

In Notification Services Standard Edition, the generators, distributors, and hosted event providers must all run on the same system. In other supported editions, the system names values can be different because the generator, distributors, and hosted event providers can be distributed across multiple systems.

Exemple

The following examples show how to define a generator and add it to an application:

// 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

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

Autres ressources

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