Condividi tramite


Proprietà JobServer.TargetServers

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

Spazio dei nomi  Microsoft.SqlServer.Management.Smo.Agent
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Sintassi

'Dichiarazione
<SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny,  _
    GetType(TargetServer))> _
Public ReadOnly Property TargetServers As TargetServerCollection 
    Get
'Utilizzo
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

Valore proprietà

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

Esempi

Pianificazione delle attività amministrative automatiche in SQL Server Agent

Vedere anche

Riferimento

JobServer Classe

Spazio dei nomi Microsoft.SqlServer.Management.Smo.Agent

Altre risorse

Automatizzazione delle attività amministrative (SQL Server Agent)

Stored procedure di SQL Server Agent (Transact-SQL)

sp_help_targetserver (Transact-SQL)