Export (0) Print
Expand All

Application Class

SQL Server 2005

Represents a Notification Services application.

Namespace: Microsoft.SqlServer.Management.Nmo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

public sealed class Application : 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 Defining Notification Services Applications.


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");


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.

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

Community Additions

ADD
Show:
© 2015 Microsoft