SPJobDefinition 类
表示作业定义。
继承层次结构
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
命名空间: Microsoft.SharePoint.Administration
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
<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 应用程序相关联。使用Service或WebApplication属性可返回此作业定义与之关联的SPService或SPWebApplication对象。
作业定义也可以是与具体的服务器关联。使用Server属性可以返回此作业定义与之关联的SPServer对象。
使用SPService或SPWebApplication对象的JobDefinitions属性以获取给定对象的作业定义的集合。
线程安全性
该类型的任何公共 静态 (已共享 在 Visual Basic 中) 成员都是线程安全的。不保证任何实例成员都是线程安全的。