Condividi tramite


Classe TargetServerCollection

The TargetServerCollection class represents a collection of TargetServer objects that represent all the target servers defined on SQL Server Agent.

Spazio dei nomi:  Microsoft.SqlServer.Management.Smo.Agent
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Sintassi

'Dichiarazione
Public NotInheritable Class TargetServerCollection _
    Inherits SimpleObjectCollectionBase
'Utilizzo
Dim instance As TargetServerCollection
public sealed class TargetServerCollection : SimpleObjectCollectionBase
public ref class TargetServerCollection sealed : public SimpleObjectCollectionBase
[<SealedAttribute>]
type TargetServerCollection =  
    class
        inherit SimpleObjectCollectionBase
    end
public final class TargetServerCollection extends SimpleObjectCollectionBase

Osservazioni

A TargetServerCollection object can be used to gain access to a set of target servers. You can use the Item property to return a specific TargetServer object.

Thread Safety

Tutti i membri statici pubblici (Shared in Microsoft Visual Basic) di questo tipo sono sicuri per le operazioni a thread multipli. Non è invece garantita la sicurezza dei membri dell'istanza.

Thread Safety

Tutti i membri pubblici static (Shared in Visual Basic) di questo tipo sono thread safe. I membri di istanza non hanno garanzia di essere thread safe.