共用方式為


SPFarm.Servers Property

Gets the collection of all physical computers that are in the local server farm.

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
An SPServerCollection object that represents the physical computers that are in the local server farm.

See Also

Reference

SPFarm Class

SPFarm Members

Microsoft.SharePoint.Administration Namespace