Add(Microsoft.SharePoint.Portal.Topology.DocumentService) Method
When overridden in a derived class, the Add method of the DocumentServiceCollection class adds the specified DocumentService object to the collection.
Parameters
documentService The Microsoft.SharePoint.Portal.Topology.DocumentService to add.
Return Value
The Microsoft.SharePoint.Portal.Topology.DocumentService added to the collection.
Remarks
The Add method calls the proc_putService stored procedure to add the DocumentService 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 documentService argument.
After calling the Add method or the (inherited) Remove method of the DocumentServiceCollection object, you must update the DefaultDocumentService property of the GlobalProperties object according to the action taken. If a new document service was added, the DefaultDocumentService property of the GlobalProperties object must point to it. If a document service is removed, the DefaultDocumentService property of the GlobalProperties object must be set to null. In both cases, you must call the Commit(Boolean) method of the GlobalProperties object to persist the changes.
Requirements
Platforms: Microsoft Windows Server 2003
Security: Code Access Security