Represents a physical computer in the server farm.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Use either the Servers property of the SPFarm class, or the SPServerCollection constructor, to get the collection of servers that are used in the specified server farm. Use an indexer to return a single server from the collection. For example, if the collection is assigned to a variable named myServers, use myServers[index] in C#, or myServers(index) in Visual Basic, where index is either the GUID or the name that identifies the service.
The following example modifies the name and role of an existing server in the server farm.