# Sandbox.ITagSet.Set

```csharp
void Set(string tag, bool state)
```

Add or remove this tag, based on state

### Parameters

- `tag` (`string`)
- `state` (`bool`)

Declared in [Sandbox.ITagSet](/api/Sandbox.ITagSet).
Assembly: `Sandbox.Engine`.
