次の方法で共有


NotificationClassEnumeration.Initialize Method

NotificationClassEnumeration クラスのオブジェクトを初期化します。

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

構文

'宣言
Public Sub Initialize ( _
    application As NSApplication _
)
public void Initialize (
    NSApplication application
)
public:
virtual void Initialize (
    NSApplication^ application
) sealed
public final void Initialize (
    NSApplication application
)
public final function Initialize (
    application : NSApplication
)

パラメータ

解説

このメソッドは、COM 相互運用機能を有効にするために、パラメータなしのコンストラクタと共に使用します。パラメータなしのコンストラクタで NotificationClassEnumeration オブジェクトを作成した場合は、他のプロパティまたはメソッドを呼び出す前に必ずこのメソッドを呼び出してください。

使用例

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)

スレッド セーフ

この型の public static (Microsoft Visual Basic では共有 ) メンバは、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。

プラットフォーム

開発プラットフォーム

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

対象プラットフォーム

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

参照

関連項目

NotificationClassEnumeration Class
NotificationClassEnumeration Members
Microsoft.SqlServer.NotificationServices Namespace