다음을 통해 공유


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

'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.

See also

Reference

SPService class

SPService members

Microsoft.SharePoint.Administration namespace