共用方式為


SPServiceInstanceJobDefinition class

代表SPJobDefinition相關聯的SPServiceInstance物件。工作定義必須與服務或 web 應用程式相關聯。此工作定義物件關聯的SPService中,執行個體的工作,並將如如何經常執行之工作,或工作的執行個體數量可以同時執行多個伺服器陣列伺服器上的排程資訊。

Inheritance hierarchy

System.Object
  Microsoft.SharePoint.Administration.SPAutoSerializingObject
    Microsoft.SharePoint.Administration.SPPersistedObject
      Microsoft.SharePoint.Administration.SPJobDefinition
        Microsoft.SharePoint.Administration.SPAdministrationServiceJobDefinition
          Microsoft.SharePoint.Administration.SPServiceInstanceJobDefinition

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

Syntax

'宣告
<GuidAttribute("EE62DD8D-071F-4378-BFC0-D395126C66B7")> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public NotInheritable Class SPServiceInstanceJobDefinition _
    Inherits SPAdministrationServiceJobDefinition
'用途
Dim instance As SPServiceInstanceJobDefinition
[GuidAttribute("EE62DD8D-071F-4378-BFC0-D395126C66B7")]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public sealed class SPServiceInstanceJobDefinition : SPAdministrationServiceJobDefinition

備註

SPServiceInstance物件代表單一執行個體的伺服器執行的服務。使用SPFarm類別之Services屬性可傳回SPServiceCollection物件,代表在伺服器陣列或使用SPService物件所包含的全伺服器陣列設定,套用至這個執行個體實作的服務的服務的集合。

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.

請參閱

參照

SPServiceInstanceJobDefinition members

Microsoft.SharePoint.Administration namespace