Compartilhar via


Classe TargetServerCollection

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

Namespace:  Microsoft.SqlServer.Management.Smo.Agent
Assembly:  Microsoft.SqlServer.Smo (em Microsoft.SqlServer.Smo.dll)

Sintaxe

'Declaração
Public NotInheritable Class TargetServerCollection _
    Inherits SimpleObjectCollectionBase
'Uso
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

Comentários

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

Qualquer membro público estático (Compartilhado no Microsoft Visual Basic) desse tipo é seguro para operações multi-threaded. Não há garantia de que qualquer membro de instância seja seguro para threads.

Segurança de thread

Quaisquer membros static (Shared no Visual Basic) públicos deste tipo são thread-safe. Não há garantia de que qualquer membro de instância seja thread-safe.