共用方式為


SPServiceApplication.ServiceInstances Property

Gets a list of the service instances hosting this service application.

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

Syntax

'Declaration
Public Overridable ReadOnly Property ServiceInstances As SPPersistedObjectCollection(Of SPServiceInstance)
    Get
'Usage
Dim instance As SPServiceApplication
Dim value As SPPersistedObjectCollection(Of SPServiceInstance)

value = instance.ServiceInstances
public virtual SPPersistedObjectCollection<SPServiceInstance> ServiceInstances { get; }

Property Value

Type: Microsoft.SharePoint.Administration.SPPersistedObjectCollection<SPServiceInstance>
The list of service instances.

See Also

Reference

SPServiceApplication Class

SPServiceApplication Members

Microsoft.SharePoint.Administration Namespace