SPServer.Local property

Gets the local server where the object model code is running, which must be joined to the server farm.

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

Syntax

'Declaration
Public Shared ReadOnly Property Local As SPServer
    Get
'Usage
Dim value As SPServer

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

Property value

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

See also

Reference

SPServer class

SPServer members

Microsoft.SharePoint.Administration namespace