Condividi tramite


InstanceCollection.Add Method

Adds an Instance to the InstanceCollection.

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

Sintassi

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

Parametri

  • instance
    The Instance to add to the collection.

Osservazioni

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

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

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

Altre risorse

Configurazione delle istanze di Notification Services
NotificationServicesInstance Element (ICF)