XPTypeInfo.HasAttribute(Type) Method

Determines whether the type has an attribute of the specified type.

Namespace: DevExpress.Xpo.Metadata

Assembly: DevExpress.Xpo.v21.2.dll


public bool HasAttribute(
    Type attributeType


Name Type Description
attributeType Type

A Type descendant which represents the type of the attribute to find.


Type Description

true if the type has an attribute of the specified type; otherwise, false.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the HasAttribute(Type) method.


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