NDepend.API Documentation
IsExcludedFromCoverage Property
NDepend.CodeModel Namespace > ICodeContainer Interface : IsExcludedFromCoverage Property
Gets a value indicating whether this assembly, namespace, type or method don’t have associated coverage data.
Syntax
bool IsExcludedFromCoverage {get;}
Remarks
This property returns:
  • true if no code coverage data are imported through the NDepend project settings NDepend.Project.IProjectCoverage.
  • true if this code element is defined in a third-party assembly.
  • true if the PDB file of this assembly or code element parent's assembly, hasen't been found.
  • true if the code element is tagged with an attribute that excludes elements from coverage statistics.
  • true if the code element does not contain any PDB sequence point. else returns false.
    This property returned boolean flag is the inverse value of CoverageDataAvailable.
    Unlike the property , this property also returns true for code elements whose coverage data is not available in coverage files provided - but that are not explicitly excluded from coverage.
  • Requirements

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

    See Also

    Reference

    ICodeContainer Interface
    ICodeContainer Members
    ExcludedFromCoverageStatistics Property
    ExcludedFromCoverageStatistics Property
    CoverageDataAvailable Property