共用方式為


SPWeeklySchedule class

表示工作定義的每週排程。

Inheritance hierarchy

System.Object
  Microsoft.SharePoint.SPSchedule
    Microsoft.SharePoint.SPDailySchedule
      Microsoft.SharePoint.SPWeeklySchedule

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

Syntax

'宣告
Public NotInheritable Class SPWeeklySchedule _
    Inherits SPDailySchedule
'用途
Dim instance As SPWeeklySchedule
public sealed class SPWeeklySchedule : SPDailySchedule

備註

時工作應該啟動,但不會影響工作完成時,這個類別的BeginDayOfWeekEndDayOfWeek屬性會指定時間間隔。計時器服務將選取的開始和結束之間的隨機時間,並會在該時間啟動工作。這項功能主要用於在伺服陣列中的多部電腦執行需要大量資源的工作。隨機的開始時間可確保這樣做並不是所有的開始同時,這也會造成負面影響伺服器的可用性。若要精確的時間來啟動工作,排程的開始和結束值應該完全相同。

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.

請參閱

參照

SPWeeklySchedule members

Microsoft.SharePoint namespace