JobStep.OnFailStep プロパティ
参照先ジョブ ステップの実行が失敗を表す完了状態で終了した後に実行されるジョブ ステップを取得します。値の設定も可能です。
名前空間: Microsoft.SqlServer.Management.Smo.Agent
アセンブリ: Microsoft.SqlServer.Smo (Microsoft.SqlServer.Smo.dll)
構文
'宣言
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property OnFailStep As Integer
Get
Set
'使用
Dim instance As JobStep
Dim value As Integer
value = instance.OnFailStep
instance.OnFailStep = value
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public int OnFailStep { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property int OnFailStep {
int get ();
void set (int value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member OnFailStep : int with get, set
function get OnFailStep () : int
function set OnFailStep (value : int)
プロパティ値
型: System.Int32
参照先ジョブ ステップが失敗して終了した後に実行されるジョブ ステップの ID 値を示す Int32 値です。
使用例
SQL Server エージェントでの自動管理タスクのスケジュール設定
関連項目
参照
Microsoft.SqlServer.Management.Smo.Agent 名前空間