# Sandbox.Model.GetAttachmentName

```csharp
string GetAttachmentName(int index)
```

> **Obsolete.**

Returns name of an attachment at given index.

### Parameters

- `index` (`int`): Index of the attachment to look up, starting at 0.

### Returns

`string`: The name of the attachment at given index.

### Exceptions

- `System.ArgumentOutOfRangeException`: Thrown when given index exceeds range of [0,AttachmentCount-1]

Declared in [Sandbox.Model](/api/Sandbox.Model).
Assembly: `Sandbox.Engine`.
