次の方法で共有


EventClassEnumeration Constructor (NSApplication)

EventClassEnumeration クラスのインスタンスを作成して初期化します。

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

構文

'宣言
Public Sub New ( _
    application As NSApplication _
)
public EventClassEnumeration (
    NSApplication application
)
public:
EventClassEnumeration (
    NSApplication^ application
)
public EventClassEnumeration (
    NSApplication application
)
public function EventClassEnumeration (
    application : NSApplication
)

パラメータ

  • application
    Notification Services アプリケーションを表す NSApplication です。

使用例

マネージ コードで EventClassEnumeration オブジェクトを作成して初期化する例を次に示します。

これらの例では、Microsoft.SqlServer.NotificationServices 名前空間を使用しています。

Dim instanceName As String = "MyInstanceName"
Dim applicationName As String = "MyApplicationName"

'Create an NSInstance object.
Dim myInstance As New NSInstance(instanceName)

'Create an NSApplication object.
Dim myApplication As New NSApplication(myInstance, applicationName)

'Create an EventClassEnumeration object.
Dim myEventClassEnumeration As _
    New EventClassEnumeration(myApplication)
string instanceName = "MyInstanceName";
string applicationName = "MyApplicationName";

//Create an NSInstance object.
NSInstance myInstance = new NSInstance(instanceName);

//Create an NSApplication object.
NSApplication myApplication = 
    new NSApplication(myInstance, applicationName);

//Create an EventClassEnumeration object.
EventClassEnumeration myEventClassEnumeration = 
    new EventClassEnumeration(myApplication);

プラットフォーム

開発プラットフォーム

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

対象プラットフォーム

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

参照

関連項目

EventClassEnumeration Class
EventClassEnumeration Members
Microsoft.SqlServer.NotificationServices Namespace