NDepend.API Documentation
HasAttribute Method (IAttributeTarget)
NDepend.CodeModel Namespace > IAttributeTarget Interface : HasAttribute Method
The attribute class that potentially tags this code element.
Returns true if this code element is tagged by attributeClass.
Syntax
bool HasAttribute( 
   IType attributeClass
)

Parameters

attributeClass
The attribute class that potentially tags this code element.
Requirements

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

See Also

Reference

IAttributeTarget Interface
IAttributeTarget Members
AttributeClassesThatTagMe Property
TaggedWithAttribute<TTagged> Method
TaggedWithAnyAttributes<TTagged> Method
TaggedWithAllAttributes<TTagged> Method
HasAttribute Method