The LastRunRetries property returns the number of times SQLServerAgent attempted execution of the referenced job step on the last execution of the step-containing job.
object.LastRunRetries
object
Expression that evaluates to an object in the Applies To list
Long
Read-only
HRESULT GetLastRunRetries(LPLONG pRetVal);