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, 7and Linux, MacOS with net10.0, net9.0 or net8.0 installed

See Also

Reference

IAttributeTarget Interface
IAttributeTarget Members
AttributeClassesThatTagMe Property
TaggedWithAttribute<TTagged> Method
TaggedWithAnyAttributes<TTagged> Method
TaggedWithAllAttributes<TTagged> Method
NDepend.Reserved.CQLinq.ExtensionMethodsCQLinqDependency.HasAttribute(NDepend.CodeModel.IAttributeTarget,System.String)