次の方法で共有


JobStep.LastRunRetries プロパティ

ジョブ ステップが前回実行されたときの再試行回数を取得します。

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

構文

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

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

プロパティ値

型: System.Int32
ジョブ ステップが前回実行されたときの再試行回数を示す Int32 値です。

使用例

SQL Server エージェントでの自動管理タスクのスケジュール設定

関連項目

参照

JobStep クラス

Microsoft.SqlServer.Management.Smo.Agent 名前空間

その他の技術情報

管理タスクの自動化 (SQL Server エージェント)

sp_help_jobstep (Transact-SQL)