# Sandbox.Modals.WorkshopPublishOptions.AddCategory

```csharp
void AddCategory(string name)
```

Adds a new category associated with the specified enum type to the collection. 
The user will be prompted to select one of the enum values when publishing.
This will be set on the file as keyvalues[name] = enum.ToString()

### Parameters

- `name` (`string`)

Declared in [Sandbox.Modals.WorkshopPublishOptions](/api/Sandbox.Modals.WorkshopPublishOptions).
Assembly: `Sandbox.Engine`.
