## ICollection::CopyTo method


Kopierar alla samlingselement till befintliga array‑element.

```cpp
virtual void System::Collections::Generic::ICollection<T>::CopyTo(System::ArrayPtr<T> array, int arrayIndex)=0
```


| Parameter | Typ | Beskrivning |
| --- | --- | --- |
| array | System::ArrayPtr\<T\> | Målararray. |
| arrayIndex | int | Startindex för destinationsarray. |

## Se även

* Typedef [ArrayPtr](../../../system/arrayptr/)
* Class [ICollection](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.PDF for C++](../../../)
