共用方式為


SPJobDefinition class

代表 [工作定義。

Inheritance hierarchy

System.Object
  Microsoft.SharePoint.Administration.SPAutoSerializingObject
    Microsoft.SharePoint.Administration.SPPersistedObject
      Microsoft.SharePoint.Administration.SPJobDefinition
        Microsoft.SharePoint.Administration.SPAdministrationServiceJobDefinition
        Microsoft.SharePoint.Administration.SPPausableJobDefinition
        Microsoft.SharePoint.Administration.SPProductVersionJobDefinition
        Microsoft.SharePoint.Administration.SPUsageImportJobDefinition
        Microsoft.SharePoint.Administration.SPUsageProcessingJobDefinition
        Microsoft.SharePoint.Diagnostics.SPDiagnosticsProviderJobDefinition

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

Syntax

'宣告
<GuidAttribute("3F9F635F-0036-42fe-9C2D-3284162732DB")> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public MustInherit Class SPJobDefinition _
    Inherits SPPersistedObject _
    Implements IBackupRestore
'用途
Dim instance As SPJobDefinition
[GuidAttribute("3F9F635F-0036-42fe-9C2D-3284162732DB")]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public abstract class SPJobDefinition : SPPersistedObject, 
    IBackupRestore

備註

工作定義必須與服務或 Web 應用程式相關聯。使用ServiceWebApplication屬性可傳回與此工作定義相關聯之SPServiceSPWebApplication物件。

工作定義也是與特定伺服器相關聯。使用Server屬性可傳回與此工作定義相關聯的SPServer物件。

使用SPServiceSPWebApplication物件的JobDefinitions屬性來取得的工作定義指定物件的集合。

Thread safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

請參閱

參照

SPJobDefinition members

Microsoft.SharePoint.Administration namespace