# Sandbox.GameTags.Has

## Overload 1

```csharp
bool Has(string tag)
```

Returns true if this object (or its parents) has given tag.

### Parameters

- `tag` (`string`)

### Returns

`bool`

## Overload 2

```csharp
bool Has(string tag, bool includeAncestors)
```

Returns true if this object has given tag.

### Parameters

- `tag` (`string`)
- `includeAncestors` (`bool`)

### Returns

`bool`

Declared in [Sandbox.GameTags](/api/Sandbox.GameTags).
Assembly: `Sandbox.Engine`.
