Share via


QueryTopology.Delete Method

Deletes the current query topology.

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 QueryTopology

instance.Delete()
public void Delete()

Remarks

This method must also delete all existing topology activation actions associated with the query topology, as well as all refactoring tasks and batches that are part of these topology activation actions.

An InvalidOperationException is thrown if the current query topology is currently active or any query component that is associated with the current query topology exists.

See Also

Reference

QueryTopology Class

QueryTopology Members

Microsoft.Office.Server.Search.Administration Namespace