Partager via


InstanceCollection.Add Method

Adds an Instance to the InstanceCollection.

Espace de noms: Microsoft.SqlServer.Management.Nmo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Syntaxe

'Déclaration
Public Sub Add ( _
    instance As Instance _
)
public void Add (
    Instance instance
)
public:
void Add (
    Instance^ instance
)
public void Add (
    Instance instance
)
public function Add (
    instance : Instance
)

Paramètres

  • instance
    The Instance to add to the collection.

Notes

Each Instance within the collection and on the database server must have a unique name.

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

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

Autres ressources

Configuration des instances de Notification Services
NotificationServicesInstance Element (ICF)