Services(System.Guid) Method
The Services method of the TopologyManager class returns the collection of Service objects of the specified Service class in the topology of the server farm.
Parameters
serviceClass The GUID of the service class to retrieve.
Return Value
A Microsoft.SharePoint.Portal.Topology.ServiceCollection that contains the collection of Service objects of the specified Service class in the topology of the server farm.
Remarks
To use the properties and methods of the objects in the Topology namespace you must be a member of the local STS_WPG and SPS_WPG security groups, and a member of the db_owner database role for the configuration database.
In addition, for certain methods, such as those that create a portal site, you must be a member of the local Administrators group, and have membership in the Database Creators and Security Administrators server roles in the SQL Server instance that hosts the configuration database.
Requirements
Platforms: Microsoft Windows Server 2003
Security: Code Access Security