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.
平台
開發平台
如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。
目標平台
如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。
請參閱
參考
Application Class
Application Members
Microsoft.SqlServer.Management.Nmo Namespace