共用方式為


SPFarm.Servers property

會取得本機伺服器陣列中的所有實體電腦的集合。

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

Syntax

'宣告
Public ReadOnly Property Servers As SPServerCollection
    Get
'用途
Dim instance As SPFarm
Dim value As SPServerCollection

value = instance.Servers
public SPServerCollection Servers { get; }

Property value

Type: Microsoft.SharePoint.Administration.SPServerCollection
SPServerCollection 物件,代表位於本機伺服器陣列的實體電腦。

請參閱

參照

SPFarm class

SPFarm members

Microsoft.SharePoint.Administration namespace