共用方式為


SPJobDefinition.Service property

取得此工作定義的服務。

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

Syntax

'宣告
Public ReadOnly Property Service As SPService
    Get
'用途
Dim instance As SPJobDefinition
Dim value As SPService

value = instance.Service
public SPService Service { get; }

Property value

Type: Microsoft.SharePoint.Administration.SPService
SPService 物件。

請參閱

參照

SPJobDefinition class

SPJobDefinition members

Microsoft.SharePoint.Administration namespace