共用方式為


SPDatabase.Server property

取得包含資料庫的伺服器。

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

Syntax

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

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

Property value

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

請參閱

參照

SPDatabase class

SPDatabase members

Microsoft.SharePoint.Administration namespace