Add(Microsoft.SharePoint.Portal.Topology.Service) Method

The Add method of the ServiceCollection class adds the specified Service to the collection.


service The Microsoft.SharePoint.Portal.Topology.Service to add.

Return Value

The Microsoft.SharePoint.Portal.Topology.Service added to the collection.


The Add method calls the proc_putService stored procedure to add the Service instance to the Services table in the configuration database, by populating the columns of a new row in the table with the properties of the service argument.


Platforms: Microsoft Windows Server 2003

Security: Code Access Security