ApplicationCollection.Add Method
Adds an Application to the collection.
Espace de noms: Microsoft.SqlServer.Management.Nmo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Syntaxe
'Déclaration
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
)
Paramètres
- application
An Application object representing a Notification Services application.
Notes
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.
Exemple
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)
Sécurité des threads
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.
Plateformes
Plateformes de développement
Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.
Plateformes cibles
Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.
Voir aussi
Référence
ApplicationCollection Class
ApplicationCollection Members
Microsoft.SqlServer.Management.Nmo Namespace