# Sandbox.ResourcePublishContext.SetPublishingDisabled

```csharp
void SetPublishingDisabled(string reason)
```

Allows you to disable publishing for this resource, with a reason that'll be shown
to the user.

### Parameters

- `reason` (`string`)

Declared in [Sandbox.ResourcePublishContext](/api/Sandbox.ResourcePublishContext).
Assembly: `Sandbox.Engine`.
