共用方式為


SPServiceApplication.Service property

取得此服務應用程式父項服務。

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

Syntax

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

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

Property value

Type: Microsoft.SharePoint.Administration.SPService
父項服務。

請參閱

參照

SPServiceApplication class

SPServiceApplication members

Microsoft.SharePoint.Administration namespace