共用方式為


SPServiceInstance.Server property

取得在其安裝的服務執行個體的伺服器。

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

Syntax

'宣告
Public ReadOnly Property Server As SPServer
    Get
'用途
Dim instance As SPServiceInstance
Dim value As SPServer

value = instance.Server
public SPServer Server { get; }

Property value

Type: Microsoft.SharePoint.Administration.SPServer
代表伺服器SPServer物件。

請參閱

參照

SPServiceInstance class

SPServiceInstance members

Microsoft.SharePoint.Administration namespace