
## CopyTo {#copyto}

Copies all the elements of the current collection to the specified string array starting at the specified destination index.

**Returns:** void Aspose::Email::Mime::

```cpp
CopyTo(System::ArrayPtr< System::String > array, int32_t arrayIndex)
```

| Parameter | Description |
| --- | --- |
| array | The destination of the elements copied from the current collection. |
| arrayIndex | An integer that represents the index in array at which copying begins. |

