共用方式為


SPServer.Local property

取得本機伺服器物件模型程式碼執行 」,這必須加入至伺服器陣列。

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

Syntax

'宣告
Public Shared ReadOnly Property Local As SPServer
    Get
'用途
Dim value As SPServer

value = SPServer.Local
public static SPServer Local { get; }

Property value

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

請參閱

參照

SPServer class

SPServer members

Microsoft.SharePoint.Administration namespace