共用方式為


SPServiceInstance.Service Property

Gets the service that owns this service instance.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

Public ReadOnly Property Service As SPService
    Get

Dim instance As SPServiceInstance
Dim value As SPService

value = instance.Service
public SPService Service { get; }

Property Value

Type: Microsoft.SharePoint.Administration.SPService
An SPService object that represents the service.

See Also

Reference

SPServiceInstance Class

SPServiceInstance Members

Microsoft.SharePoint.Administration Namespace