共用方式為


SPDatabase.Server Property

Gets the server that contains the database.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public ReadOnly Property Server As SPServer
    Get
'Usage
Dim instance As SPDatabase
Dim value As SPServer

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

Property Value

Type: Microsoft.SharePoint.Administration.SPServer
An SPServer object that represents the server.

See Also

Reference

SPDatabase Class

SPDatabase Members

Microsoft.SharePoint.Administration Namespace