JobServer.TargetServers Propiedad
Represents a collection of TargetServer objects. Each TargetServer object represents a target server defined on SQL Server Agent.
Espacio de nombres: Microsoft.SqlServer.Management.Smo.Agent
Ensamblado: Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Sintaxis
'Declaración
<SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny, _
GetType(TargetServer))> _
Public ReadOnly Property TargetServers As TargetServerCollection
Get
'Uso
Dim instance As JobServer
Dim value As TargetServerCollection
value = instance.TargetServers
[SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny,
typeof(TargetServer))]
public TargetServerCollection TargetServers { get; }
[SfcObjectAttribute(SfcContainerRelationship::ObjectContainer, SfcContainerCardinality::ZeroToAny,
typeof(TargetServer))]
public:
property TargetServerCollection^ TargetServers {
TargetServerCollection^ get ();
}
[<SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny,
typeof(TargetServer))>]
member TargetServers : TargetServerCollection
function get TargetServers () : TargetServerCollection
Valor de la propiedad
Tipo: Microsoft.SqlServer.Management.Smo.Agent.TargetServerCollection
A TargetServerCollection that represents the target server defined on SQL Server Agent.
Ejemplos
Programar tareas administrativas automáticas en el Agente SQL Server
Vea también
Referencia
Espacio de nombres Microsoft.SqlServer.Management.Smo.Agent
Otros recursos
Tareas administrativas automatizadas (Agente SQL Server)
Procedimientos almacenados del Agente SQL Server (Transact-SQL)