다음을 통해 공유


Application Class

Represents a Notification Services application.

네임스페이스: Microsoft.SqlServer.Management.Nmo
어셈블리: Microsoft.SqlServer.Smo (in 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

주의

Use the Application class to define a Notification Services application. Use the Applications property of the Instance class to add an application to the instance's ApplicationCollection.

For information about building Notification Services applications, see Notification Services 응용 프로그램 정의.

Inheritance Hierarchy

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

The following examples show the minimum application definition using Notification Services Management Objects (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")

스레드 보안

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 Members
Microsoft.SqlServer.Management.Nmo Namespace

관련 자료

Notification Services 응용 프로그램 정의
Application Element (ADF)