
## CopyTo {#copyto}

Copies collection content to an array at specified index.

**Returns:** void Aspose::Tasks::

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

| Parameter | Description |
| --- | --- |
| array | Destination array of WeekDay to copy to |
| arrayIndex | Starting index for copy operation. |

