Share via


TargetServer.Parent Property

Gets the JobServer object that is the parent of the TargetServer object.

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

Syntax

'Declaration
<SfcObjectAttribute(SfcObjectRelationship.ParentObject)> _
Public ReadOnly Property Parent As JobServer 
    Get
'Usage
Dim instance As TargetServer 
Dim value As JobServer 

value = instance.Parent
[SfcObjectAttribute(SfcObjectRelationship.ParentObject)]
public JobServer Parent { get; }
[SfcObjectAttribute(SfcObjectRelationship::ParentObject)]
public:
property JobServer^ Parent {
    JobServer^ get ();
}
[<SfcObjectAttribute(SfcObjectRelationship.ParentObject)>]
member Parent : JobServer
function get Parent () : JobServer

Property Value

Type: Microsoft.SqlServer.Management.Smo.Agent.JobServer
A JobServer object value that is the parent of the TargetServer object.

Examples

Scheduling Automatic Administrative Tasks in SQL Server Agent

See Also

Reference

TargetServer Class

Microsoft.SqlServer.Management.Smo.Agent Namespace

Other Resources

Automated Administration Tasks (SQL Server Agent)

sp_help_targetserver (Transact-SQL)