Condividi tramite


Classe TargetServerGroupCollection

The TargetServerGroupCollection class represents a collection of TargetServerGroup objects that represent all the target server groups 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 TargetServerGroupCollection _
    Inherits SimpleObjectCollectionBase
'Utilizzo
Dim instance As TargetServerGroupCollection
public sealed class TargetServerGroupCollection : SimpleObjectCollectionBase
public ref class TargetServerGroupCollection sealed : public SimpleObjectCollectionBase
[<SealedAttribute>]
type TargetServerGroupCollection =  
    class
        inherit SimpleObjectCollectionBase
    end
public final class TargetServerGroupCollection extends SimpleObjectCollectionBase

Osservazioni

A TargetServerGroupCollection object can be used to gain access to a set of target server groups. You can use the Item property to return a specific TargetServerGroup 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.