XPTypeInfo.HasAttribute(String) Method
Determines whether the type has the specified attribute.
Namespace: DevExpress.Xpo.Metadata
Assembly: DevExpress.Xpo.v25.1.dll
NuGet Package: DevExpress.Xpo
Declaration
Parameters
| Name | Type | Description |
|---|---|---|
| name | String | A String value which specifies the name of the attribute to find. |
Returns
| Type | Description |
|---|---|
| Boolean | true if the type has the specified attribute; otherwise, false. |
Remarks
The HasAttribute method scans the XPTypeInfo.Attributes collection for an element whose name matches the name parameter. Note the check is case-sensitive.
See Also