Skip to main content
.NET Framework 4.6.2+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

IBaseInfo.FindAttribute<AttributeType>() Method

Indicates whether an attribute specified by the generic type parameter is associated with the type represented by the current IBaseInfo object.

Namespace: DevExpress.ExpressApp.DC

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

AttributeType FindAttribute<AttributeType>()
    where AttributeType : Attribute

#Type Parameters

Name
AttributeType

#Returns

Type Description
AttributeType

A Attribute class descendant that represents the attribute specified by the generic type parameter and associated with the current type.

#Remarks

This method searches over a type’s own attributes as well as the inherited attributes. If an attribute of the specified type is not associated with the current type, the method returns null (Nothing in VB).

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the FindAttribute<AttributeType>() method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also