Remove(System.Guid) Method

The Remove method of the ServiceCollection class removes the Service object specified by the serviceId parameter from the topology of the server farm.

Parameters

serviceId   The GUID of the Service object to remove. This ID represents the primary key of the Service instance in the Services table of the configuration database.

Remarks

The Remove method calls the proc_dropService stored procedure to delete the Service instance from the Services table in the configuration database, by deleting the row in the table identified by the serviceId argument.

The Remove method does not report any errors for a valid guid that is not a valid service identifier.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security