# Sandbox.TypeDescription.HasAttribute

```csharp
bool HasAttribute(bool inherited = True)
```

Returns true if the class has this attribute

### Parameters

- `inherited` (`bool`), default `True`

### Returns

`bool`

Declared in [Sandbox.TypeDescription](/api/Sandbox.TypeDescription).
Assembly: `Sandbox.Reflection`.
