抽象基类支持作业定义中使用不同的计划类型。
继承层次结构
System.Object
Microsoft.SharePoint.SPSchedule
Microsoft.SharePoint.SPDailySchedule
Microsoft.SharePoint.SPHourlySchedule
Microsoft.SharePoint.SPMinuteSchedule
Microsoft.SharePoint.SPMonthlyByDaySchedule
Microsoft.SharePoint.SPOneTimeSchedule
命名空间: Microsoft.SharePoint
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public MustInherit Class SPSchedule
用法
Dim instance As SPSchedule
public abstract class SPSchedule
备注
SPJobDefinition类的Schedule属性用于获取计划作业定义。
SharePoint Foundation作业定义可以使用下面的计划类型:
SharePoint Foundation不支持扩展SPSchedule类。
从SPSchedule派生的类中的 begin 和 end 属性指定时间窗口时作业应启动和作业完成后,没有任何效果。定时服务将选择 begin 和 end 之间的随机时间,并将在该时间启动作业。此功能主要用于在服务器场中的多台计算机运行的占用大量资源作业。随机的开始时间可确保这些操作不是所有开始同时,从而可能产生不利影响服务器的可用性。若要在精确时启动作业,计划的开始和结束值应相同。
线程安全性
该类型的任何公共 静态 (已共享 在 Visual Basic 中) 成员都是线程安全的。不保证任何实例成员都是线程安全的。