共用方式為


SPPersistedObject.Farm property

取得物件所在的伺服器陣列。

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

Syntax

'宣告
Public ReadOnly Property Farm As SPFarm
    Get
'用途
Dim instance As SPPersistedObject
Dim value As SPFarm

value = instance.Farm
public SPFarm Farm { get; }

Property value

Type: Microsoft.SharePoint.Administration.SPFarm
伺服器陣列。

請參閱

參照

SPPersistedObject class

SPPersistedObject members

Microsoft.SharePoint.Administration namespace