Поделиться через


Класс TargetServerCollection

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

Пространство имен:  Microsoft.SqlServer.Management.Smo.Agent
Сборка:  Microsoft.SqlServer.Smo (в Microsoft.SqlServer.Smo.dll)

Синтаксис

'Декларация
Public NotInheritable Class TargetServerCollection _
    Inherits SimpleObjectCollectionBase
'Применение
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

Замечания

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

Все общие статические члены этого типа (Shared в Microsoft Visual Basic) можно использовать в многопоточных операциях. Безопасная многопоточная работа с членами экземпляров типа не гарантируется.

Потоковая защита

Все открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность элементов экземпляров не гарантируется.