NDepend.API Documentation
SetIsActive Method (IQuery)
NDepend.CodeQuery Namespace > IQuery Interface : SetIsActive Method
The new value for IsActive.
Returns a new IQuery object cloned from this object, where IsActive value is set to isActive, if this value for IsActive is different than isActive. Otherwise returns this IQuery.
Syntax
IQuery SetIsActive( 
   bool isActive
)

Parameters

isActive
The new value for IsActive.

Return Value

The new query object representing this query.
Remarks
The default value is true.
Since the queries hierarchy is an immutable hierarchical structure, this methods changes the hierarchy of objects if this value for IsActive is different than isActive.
Requirements

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

See Also

Reference

IQuery Interface
IQuery Members