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

Declaration

public bool HasAttribute(
    Type attributeType
)

Parameters

Name Type Description
attributeType Type

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

Returns

Type Description
Boolean

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.

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