Initializes a new instance of the Generator class with an Application and a name.
네임스페이스: Microsoft.SqlServer.Management.Nmo
어셈블리: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
구문
‘선언
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
)
매개 변수
- 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.
주의
Each application has one generator.
예
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
플랫폼
개발 플랫폼
지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.
대상 플랫폼
지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.
참고 항목
참조
Generator Class
Generator Members
Microsoft.SqlServer.Management.Nmo Namespace