Skip to main content

IBaseInfo.FindAttribute<AttributeType>(Boolean) 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.v25.2.dll

NuGet Package: DevExpress.ExpressApp

Declaration

AttributeType FindAttribute<AttributeType>(
    bool recursive
)
    where AttributeType : Attribute

Parameters

Name Type Description
recursive Boolean

true, to take into account inherited attributes; otherwise, false.

Type Parameters

Name Description
AttributeType

The type of attribute to find.

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

If an attribute of the specified type is not associated with the current type, the method returns null.

See Also