Table of Contents

Interface IProjectCodeQueries

Namespace
NDepend.Project
Assembly
NDepend.API.dll

Represents this NDepend project code queries and code rules.

public interface IProjectCodeQueries
Extension Methods

Properties (3)

AreActive

Gets or sets the active status of code queries and rules defined in this NDepend project.

bool AreActive { get; set; }

Property Value

bool

CodeQueriesSet

Gets or sets the set of code rules and queries for this NDepend project.

IGroup CodeQueriesSet { get; set; }

Property Value

IGroup

Remarks

If this NDepend project file exists, the set of code rules and queries data is loaded from and saved to the project file, each time this property getter or setter is invoked.
If this NDepend project file doesn't exist, the set of code rules and queries data is loaded from and saved to, in memory.
(property getter only) If this NDepend project file XML content is corrupted, the set of default queries is returned.

Exceptions

IOException

(property setter only) The project file exists but cannot be written.

QueryPersistenceKind

Gets or sets how queries are persisted in this project file.

QueryPersistenceKind QueryPersistenceKind { get; set; }

Property Value

QueryPersistenceKind

Method (1)

SetDefaultCodeQueries()

Set the set of default code rules and queries for this NDepend project.

void SetDefaultCodeQueries()

See Also