We recommend using Visual Studio 2017

TargetServer.Status Property

Gets information about the current component execution status or integrity status of the referenced target server.

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

public TargetServerStatus Status { get; }

Property Value

Type: Microsoft.SqlServer.Management.Smo.Agent.TargetServerStatus
A TargetServerStatus object value that specifies the current execution and integrity status of the target server.

Community Additions