Skip to main content

XPTypeInfo.HasAttribute(Type) Method

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

Namespace: DevExpress.Xpo.Metadata

Assembly: DevExpress.Xpo.v24.1.dll

NuGet Package: DevExpress.Xpo

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.

See Also