QueryComponent.Delete Method
Deletes the query component.
Namespace: Microsoft.Office.Server.Search.Administration
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
Public Sub Delete
'Usage
Dim instance As QueryComponent
instance.Delete()
public void Delete()
Remarks
This component can be deleted only when it is not connected to the Search service application’s query topology.
An InvalidOperationException is thrown if the QueryTopology to which this query component belongs is active.