Share via


SPFarm.Local Property

Gets an object that represents the local server farm.

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

Syntax

Public Shared ReadOnly Property Local As SPFarm
    Get

Dim value As SPFarm

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

Property Value

Type: Microsoft.SharePoint.Administration.SPFarm
An SPFarm object that represents the local server farm.

Remarks

You must be connected to one of the front-end Web servers to get this information.

See Also

Reference

SPFarm Class

SPFarm Members

Microsoft.SharePoint.Administration Namespace