次の方法で共有


LastRunDuration プロパティ

参照先ジョブ ステップが前回実行されたときの実行所要時間を取得します。

名前空間:  Microsoft.SqlServer.Management.Smo.Agent
アセンブリ:  Microsoft.SqlServer.Smo (Microsoft.SqlServer.Smo.dll)

構文

'宣言
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property LastRunDuration As Integer
    Get
'使用
Dim instance As JobStep
Dim value As Integer

value = instance.LastRunDuration
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public int LastRunDuration { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property int LastRunDuration {
    int get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member LastRunDuration : int
function get LastRunDuration () : int

プロパティ値

型: System. . :: . .Int32
前回のジョブの完了に要した時間。hhmmss (時間、分、秒) として書式設定されます。