SPService.Instances Property
Gets a collection of all instances of the service 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 Instances As SPServiceInstanceDependencyCollection
Get
'Usage
Dim instance As SPService
Dim value As SPServiceInstanceDependencyCollection
value = instance.Instances
public SPServiceInstanceDependencyCollection Instances { get; }
Property Value
Type: Microsoft.SharePoint.Administration.SPServiceInstanceDependencyCollection
An SPServiceInstanceDependencyCollection object that represents the service instances.