NDepend.API Documentation
CanDeleteQuery Method
NDepend.CodeQuery Namespace > IController Interface : CanDeleteQuery Method
The query to delete.
If false is returned, contains the plain-english explanation of the failure.
Gets a value indicating whether queryToDelete can be deleted.
Syntax
bool CanDeleteQuery( 
   IQuery queryToDelete,
   out string failureReason
)

Parameters

queryToDelete
The query to delete.
failureReason
If false is returned, contains the plain-english explanation of the failure.
Remarks
If queryToDelete.IQuery.IsExtractedFromCode or IQuery.IsImportedRule the query cannot be deleted.
Requirements

Target Platforms: Windows 11, 10, 8, 7and Linux, MacOS with net10.0, net9.0 or net8.0 installed

See Also

Reference

IController Interface
IController Members