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


Public ReadOnly Property Instances As SPServiceInstanceDependencyCollection
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.

See Also


SPService Class

SPService Members

Microsoft.SharePoint.Administration Namespace