次の方法で共有


JobServer.TargetServerGroups プロパティ

TargetServerGroup オブジェクトのコレクションを表します。 各 TargetServerGroup オブジェクトは、SQL Server エージェントで定義された対象サーバー グループを表します。

名前空間:  Microsoft.SqlServer.Management.Smo.Agent
アセンブリ:  Microsoft.SqlServer.Smo (Microsoft.SqlServer.Smo.dll)

構文

'宣言
<SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny,  _
    GetType(TargetServerGroup))> _
Public ReadOnly Property TargetServerGroups As TargetServerGroupCollection 
    Get
'使用
Dim instance As JobServer 
Dim value As TargetServerGroupCollection 

value = instance.TargetServerGroups
[SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny, 
    typeof(TargetServerGroup))]
public TargetServerGroupCollection TargetServerGroups { get; }
[SfcObjectAttribute(SfcContainerRelationship::ObjectContainer, SfcContainerCardinality::ZeroToAny, 
    typeof(TargetServerGroup))]
public:
property TargetServerGroupCollection^ TargetServerGroups {
    TargetServerGroupCollection^ get ();
}
[<SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny, 
    typeof(TargetServerGroup))>]
member TargetServerGroups : TargetServerGroupCollection
function get TargetServerGroups () : TargetServerGroupCollection

プロパティ値

型: Microsoft.SqlServer.Management.Smo.Agent.TargetServerGroupCollection
SQL Server エージェントで定義された対象サーバー グループを表す TargetServerGroupCollection です。

使用例

SQL Server エージェントでの自動管理タスクのスケジュール設定

関連項目

参照

JobServer クラス

Microsoft.SqlServer.Management.Smo.Agent 名前空間

その他の技術情報

管理タスクの自動化 (SQL Server エージェント)

sp_help_targetservergroup (Transact-SQL)