Nota:
El acceso a esta página requiere autorización. Puede intentar iniciar sesión o cambiar directorios.
El acceso a esta página requiere autorización. Puede intentar cambiar los directorios.
Initializes a new instance of the Generator class with an Application and a name.
Espacio de nombres: Microsoft.SqlServer.Management.Nmo
Ensamblado: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Sintaxis
'Declaración
Public Sub New ( _
application As Application, _
name As String _
)
public Generator (
Application application,
string name
)
public:
Generator (
Application^ application,
String^ name
)
public Generator (
Application application,
String name
)
public function Generator (
application : Application,
name : String
)
Parámetros
- application
The Application for the generator. This parameter sets the Parent property.
name
A String, between 1 and 255 characters in length, that specifies the name of the generator. This name is not used by Notification Services.You cannot rename the generator. Instead, you must remove it and add a new generator that has the new name.
Notas
Each application has one generator.
Ejemplo
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
Plataformas
Plataformas de desarrollo
Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.
Plataformas de destino
Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.
Vea también
Referencia
Generator Class
Generator Members
Microsoft.SqlServer.Management.Nmo Namespace
Otros recursos
Especificar la configuración del generador
Generator Element (ADF)