# Sandbox.SerializedProperty.HasAttribute

## Overload 1

```csharp
bool HasAttribute()
```

Return true if the property has this attribute

### Returns

`bool`

## Overload 2

```csharp
bool HasAttribute(System.Type t)
```

Return true if the property has this attribute

### Parameters

- `t` (`System.Type`)

### Returns

`bool`

Declared in [Sandbox.SerializedProperty](/api/Sandbox.SerializedProperty).
Assembly: `Sandbox.System`.
