Bagikan melalui


Job.LastRunDate Property

Gets the date and time when the job was last run.

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

Syntax

'Declaration
<SfcPropertyAttribute(SfcPropertyFlags.Expensive)> _
Public ReadOnly Property LastRunDate As DateTime
    Get
'Usage
Dim instance As Job
Dim value As DateTime

value = instance.LastRunDate
[SfcPropertyAttribute(SfcPropertyFlags.Expensive)]
public DateTime LastRunDate { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Expensive)]
public:
property DateTime LastRunDate {
    DateTime get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Expensive)>]
member LastRunDate : DateTime
function get LastRunDate () : DateTime

Property Value

Type: System.DateTime
A DateTime system object value that specifies the date and time when the job was last run.