Jaa


ApplicationCollection.Add Method

Adds an Application to the collection.

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

Syntax

'Declaration
Public Sub Add ( _
    application As Application _
)
public void Add (
    Application application
)
public:
void Add (
    Application^ application
)
public void Add (
    Application application
)
public function Add (
    application : Application
)

Parameters

  • application
    An Application object representing a Notification Services application.

Remarks

Within a Notification Services instance, all application names must be unique.

If you add an application after creating the instance, you must Update the instance to apply the changes.

Example

The following examples show how to call a method that defines an application and then add the application to an instance of Notification Services:

Application app = ConfigureApplication(myInstance);
myInstance.Applications.Add(app);
Dim app As Application = ConfigureApplication(myInstance)
myInstance.Applications.Add(app)

Thread Safety

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.

Platforms

Development Platforms

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

Target Platforms

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

See Also

Reference

ApplicationCollection Class
ApplicationCollection Members
Microsoft.SqlServer.Management.Nmo Namespace

Other Resources

Associating Applications with an Instance