JobSchedule.IsEnabled プロパティ

ジョブ スケジュールが有効であるかどうかを示す Boolean プロパティ値を取得または設定します。

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

構文

'宣言
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property IsEnabled As Boolean 
    Get 
    Set
'使用
Dim instance As JobSchedule 
Dim value As Boolean 

value = instance.IsEnabled

instance.IsEnabled = value
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public bool IsEnabled { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property bool IsEnabled {
    bool get ();
    void set (bool value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member IsEnabled : bool with get, set
function get IsEnabled () : boolean 
function set IsEnabled (value : boolean)

プロパティ値

型: System.Boolean
ジョブ スケジュールが有効であるかどうかを示す Boolean プロパティ値です。 True の場合、ジョブ スケジュールは有効です。False (既定値) の場合、有効ではありません。

使用例

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

関連項目

参照

JobSchedule クラス

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

その他の技術情報

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

sp_add_schedule (Transact-SQL)