共用方式為


SPJobDefinition.IsDisabled property

取得或設定是否應停用工作定義。

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public Property IsDisabled As Boolean
    Get
    Set
'用途
Dim instance As SPJobDefinition
Dim value As Boolean

value = instance.IsDisabled

instance.IsDisabled = value
public bool IsDisabled { get; set; }

Property value

Type: System.Boolean
若要停用 「 工作 」 定義 ; true否則,請false (預設值)。

請參閱

參照

SPJobDefinition class

SPJobDefinition members

Microsoft.SharePoint.Administration namespace