次の方法で共有


TargetServerCollection クラス

TargetServerCollection クラスは、SQL Server エージェントで定義されたすべての対象サーバーを表す TargetServer オブジェクトのコレクションです。

名前空間:  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

説明

TargetServerCollection オブジェクトは、一連の対象サーバーにアクセスするために使用できます。Item プロパティを使用すると、特定の TargetServer オブジェクトを取得できます。

スレッド セーフ

この型の public static (Microsoft Visual Basic では Shared) のすべてのメンバーは、マルチスレッド操作で安全に使用できます。 インスタンス メンバーの場合は、スレッド セーフであるとは限りません。

スレッド セーフ

この型の public static (Visual Basic では Shared) のメンバーはすべて、スレッド セーフです。インスタンス メンバーの場合は、スレッド セーフであるとは限りません。