Compartilhar via


Propriedade do RDL JobServer.TargetServerGroups

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

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

Sintaxe

'Declaração
<SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny,  _
    GetType(TargetServerGroup))> _
Public ReadOnly Property TargetServerGroups As TargetServerGroupCollection 
    Get
'Uso
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

Valor da propriedade

Tipo: Microsoft.SqlServer.Management.Smo.Agent.TargetServerGroupCollection
A TargetServerGroupCollection that represents the target server groups defined on SQL Server Agent.

Exemplos

Agendando tarefas administrativas automáticas no SQL Server Agent

Consulte também

Referência

JobServer Classe

Namespace Microsoft.SqlServer.Management.Smo.Agent

Outros recursos

Tarefas de administração automatizadas (SQL Server Agent)

sp_help_targetservergroup (Transact-SQL)