次の方法で共有


Application Class

Notification Services アプリケーションを表します。

名前空間: Microsoft.SqlServer.Management.Nmo
アセンブリ: Microsoft.SqlServer.Smo (microsoft.sqlserver.smo.dll 内)

構文

'宣言
Public NotInheritable Class Application
    Inherits NamedSmoObject
public sealed class Application : NamedSmoObject
public ref class Application sealed : public NamedSmoObject
public final class Application extends NamedSmoObject
public final class Application extends NamedSmoObject

解説

Notification Services アプリケーションを定義するには、Application クラスを使用します。アプリケーションをインスタンスの ApplicationCollection に追加するには、Instance クラスの Applications プロパティを使用します。

Notification Services アプリケーションの構築方法の詳細については、「Notification Services アプリケーションの定義」を参照してください。

継承階層

System.Object
   Microsoft.SqlServer.Management.Smo.SmoObjectBase
     Microsoft.SqlServer.Management.Smo.SqlSmoObject
       Microsoft.SqlServer.Management.Smo.NamedSmoObject
        Microsoft.SqlServer.Management.Nmo.Application

使用例

Notification Services 管理オブジェクト (NMO) を使用した最小限のアプリケーション定義の例を次に示します。

Application emptyApp = 
    new Application(emptyInstance, applicationName);

Generator generator = new Generator(emptyApp, "Generator");
generator.SystemName = notificationServicesHost;
emptyApp.Generator = generator;
Console.WriteLine("Generator Added");

Distributor distributor = new Distributor(emptyApp, "Distributor");
distributor.SystemName = notificationServicesHost;
emptyApp.Distributors.Add(distributor);
Console.WriteLine("Distributor Added");
Dim emptyApp As Application = _
    New Application(emptyInstance, applicationName)

Dim generator As Generator = _
    New Generator(emptyApp, "Generator")
generator.SystemName = notificationServicesHost
emptyApp.Generator = generator
Console.WriteLine("Generator Added")

Dim distributor As Distributor = _
    New Distributor(emptyApp, "Distributor")
distributor.SystemName = notificationServicesHost
emptyApp.Distributors.Add(distributor)
Console.WriteLine("Distributor Added")

スレッド セーフ

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

プラットフォーム

開発プラットフォーム

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

対象プラットフォーム

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

参照

関連項目

Application Members
Microsoft.SqlServer.Management.Nmo Namespace

その他の技術情報

Notification Services アプリケーションの定義
Application 要素 (ADF)