共用方式為


SPService.Instances property

伺服器陣列中取得所有的服務執行個體的集合。

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

Syntax

'宣告
Public ReadOnly Property Instances As SPServiceInstanceDependencyCollection
    Get
'用途
Dim instance As SPService
Dim value As SPServiceInstanceDependencyCollection

value = instance.Instances
public SPServiceInstanceDependencyCollection Instances { get; }

Property value

Type: Microsoft.SharePoint.Administration.SPServiceInstanceDependencyCollection
SPServiceInstanceDependencyCollection 物件,代表服務執行個體。

請參閱

參照

SPService class

SPService members

Microsoft.SharePoint.Administration namespace