共用方式為


SPFarm.Services property

會取得伺服器陣列中的所有服務的集合。

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

Syntax

'宣告
Public ReadOnly Property Services As SPServiceCollection
    Get
'用途
Dim instance As SPFarm
Dim value As SPServiceCollection

value = instance.Services
public SPServiceCollection Services { get; }

Property value

Type: Microsoft.SharePoint.Administration.SPServiceCollection
SPServiceCollection 物件,代表伺服器陣列中的所有服務。

請參閱

參照

SPFarm class

SPFarm members

Microsoft.SharePoint.Administration namespace