次の方法で共有


NotificationClassEnumeration Constructor ()

NotificationClassEnumeration クラスの初期化されていないインスタンスを作成します。

名前空間: Microsoft.SqlServer.NotificationServices
アセンブリ: Microsoft.SqlServer.NotificationServices (microsoft.sqlserver.notificationservices.dll 内)

構文

'宣言
Public Sub New
public NotificationClassEnumeration ()
public:
NotificationClassEnumeration ()
public NotificationClassEnumeration ()
public function NotificationClassEnumeration ()

解説

パラメータなしのコンストラクタは、COM 相互運用機能を有効にするために、Initialize メソッドと共に使用します。オブジェクトを作成した後は、使用する前に必ず、NSApplication オブジェクトへの参照を使用して初期化してください。

使用例

Dim myInstance, myApplication, myNotificationClassEnumeration

const instanceName = "MyInstanceName"
const applicationName = "MyApplicationName"

'Create & initialize an NSInstance object.
set myInstance = WScript.CreateObject("Microsoft.SqlServer.NotificationServices.NSInstance")
myInstance.Initialize instanceName

'Create & initialize an NSApplication object.
set myApplication = WScript.CreateObject("Microsoft.SqlServer.NotificationServices.NSApplication")
myApplication.Initialize (myInstance), applicationName

'Create & initialize a NotificationClassEnumeration object.
set myNotificationClassEnumeration = WScript.CreateObject("Microsoft.SqlServer.NotificationServices.NotificationClassEnumeration")
myNotificationClassEnumeration.Initialize (myApplication)

プラットフォーム

開発プラットフォーム

サポートされているプラットフォームの一覧については、「SQL Server 2005 のインストールに必要なハードウェアおよびソフトウェア」を参照してください。

対象プラットフォーム

サポートされているプラットフォームの一覧については、「SQL Server 2005 のインストールに必要なハードウェアおよびソフトウェア」を参照してください。

参照

関連項目

NotificationClassEnumeration Class
NotificationClassEnumeration Members
Microsoft.SqlServer.NotificationServices Namespace