Compartilhar via


SPPersistedObject.Farm Property

Gets the server farm where the object resides.

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

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.UnsupportedSPType)> _
Public ReadOnly Property Farm As SPFarm
    Get
'Usage
Dim instance As SPPersistedObject
Dim value As SPFarm

value = instance.Farm
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.UnsupportedSPType)]
public SPFarm Farm { get; }

Property Value

Type: Microsoft.SharePoint.Administration.SPFarm
The server farm.

See Also

Reference

SPPersistedObject Class

SPPersistedObject Members

Microsoft.SharePoint.Administration Namespace