共用方式為


SPFarm.Services Property

Gets the collection of all services that are in the server farm.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public ReadOnly Property Services As SPServiceCollection
    Get
'Usage
Dim instance As SPFarm
Dim value As SPServiceCollection

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

Property Value

Type: Microsoft.SharePoint.Administration.SPServiceCollection
An SPServiceCollection object that represents all the services that are in the server farm.

See Also

Reference

SPFarm Class

SPFarm Members

Microsoft.SharePoint.Administration Namespace