NDepend.API Documentation
WasAdded(IAbsoluteDirectoryPath) Method
NDepend.CodeModel Namespace > ICompareContext Interface > WasAdded Method : WasAdded(IAbsoluteDirectoryPath) Method
The absolute directory path that contains some source files.
Returns true if the sourceDirPath has been added since the baseline.
Syntax

Parameters

sourceDirPath
The absolute directory path that contains some source files.
Remarks
sourceDirPath can be obtained from ICodeElement.ICodeElement.SourceDecls , ISourceDecl.ISourceDecl.SourceFile.ISourceFile.FilePath.NDepend.Path.IPath.ParentDirectoryPath.
This method works even when the path is rebased, thanks to an heuristic.
Requirements

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

See Also

Reference

ICompareContext Interface
ICompareContext Members
Overload List
CodeWasChanged Method
WasAdded(ICodeElement) Method
WasAdded(IAbsoluteFilePath) Method
WasChanged(IAbsoluteDirectoryPath) Method
WasRemoved(IAbsoluteDirectoryPath) Method