## NameValueCollection::CopyTo method


Copies collection elements into existing array elements.

```cpp
void System::Collections::Specialized::NameValueCollection::CopyTo(System::ArrayPtr<String> array, int32_t arrayIndex) override
```


| Parameter | Type | Description |
| --- | --- | --- |
| array | System::ArrayPtr\<String\> | Destination array. |
| arrayIndex | int32_t | Destination array start index. |

## See Also

* Typedef [ArrayPtr](../../../system/arrayptr/)
* Class [String](../../../system/string/)
* Class [NameValueCollection](../)
* Namespace [System::Collections::Specialized](../../)
* Library [Aspose.PUB for C++](../../../)
