# Sandbox.Mounting.PrefabBuilder.WithMetadata

```csharp
PrefabBuilder WithMetadata(string key, string value)
```

Set a metadata value on the resulting prefab, such as its "Title", "Description" or "Group", read back with
[Sandbox.PrefabFile.GetMetadata](/api/Sandbox.PrefabFile/GetMetadata). It wins over the same key from a metadata component in the prefab,
such as [Sandbox.SceneInformation](/api/Sandbox.SceneInformation). A null value takes back one set earlier.

### Parameters

- `key` (`string`)
- `value` (`string`)

### Returns

`PrefabBuilder`

Declared in [Sandbox.Mounting.PrefabBuilder](/api/Sandbox.Mounting.PrefabBuilder).
Assembly: `Sandbox.Engine`.
