Share via


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)

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
An SPServiceInstanceDependencyCollection object that represents the service instances.

See Also

Reference

SPService Class

SPService Members

Microsoft.SharePoint.Administration Namespace