# IDurableQueue&lt;T&gt;.CopyTo(T[], int)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.journaling.idurablequeue-1/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.journaling.idurablequeue-1/methods/)

```csharp
public abstract void CopyTo(T[] array, int arrayIndex)
```

Copies the queue elements to an array, starting at the specified array index.

### Parameters

- `array` (`T[]`): The destination array.
- `arrayIndex` (`int`): The zero-based index in `array` at which copying begins.
