# canHaveAnyAttribute

> Must return true if the UXML element attributes are not restricted to the values enumerated by BaseUxmlTraits.uxmlAttributesDescription.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine.UIElements](/engine/6000.3/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

> **Warning:**
>
> **Deprecated.** BaseUxmlTraits is deprecated and will be removed. Use UxmlElementAttribute instead.

```csharp
public bool canHaveAnyAttribute { get; protected set; }
```
