Condividi tramite


ApplicationCollection.Add Method

Adds an Application to the collection.

Spazio dei nomi: Microsoft.SqlServer.Management.Nmo
Assembly : Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Sintassi

'Dichiarazione
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
)

Parametri

  • application
    An Application object representing a Notification Services application.

Osservazioni

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.

Esempio

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.

Piattaforme

Piattaforme di sviluppo

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Piattaforme di destinazione

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Vedere anche

Riferimento

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

Altre risorse

Associazione di applicazioni a un'istanza