# UxmlTypeRestriction

> Base class to restricts the value of an attribute.

## Definition

* **Type:** Class
* **Namespace:** [UnityEngine.UIElements](/engine/6000.3/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule
* **Implements:** [IEquatable\<UxmlTypeRestriction>](https://learn.microsoft.com/dotnet/api/system.iequatable-1)

```csharp
public abstract class UxmlTypeRestriction : IEquatable<UxmlTypeRestriction>
```

## Methods

| Method                                                                                         | Description                                                                                                                                                                            |
| ---------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Equals](/engine/6000.3/script-reference/unityengine/uielements/uxmltyperestriction/equals.md) | Indicates whether the current [UxmlTypeRestriction](/engine/6000.3/script-reference/unityengine/uielements/uxmltyperestriction.md) object is equal to another object of the same type. |
