JobServer.TargetServerGroups 属性

Represents a collection of TargetServerGroup objects. Each TargetServerGroup object represents a target server group defined on SQL Server Agent.

命名空间:  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
A TargetServerGroupCollection that represents the target server groups defined on SQL Server Agent.

示例

在 SQL Server 代理中计划自动管理任务

请参阅

参考

JobServer 类

Microsoft.SqlServer.Management.Smo.Agent 命名空间

其他资源

自动执行管理任务(SQL Server 代理)

sp_help_targetservergroup (Transact-SQL)