## XmlAttributeCollection::CopyTo method


Copies all the [XmlAttribute](../../xmlattribute/) objects from this collection into the given array.

```cpp
void System::Xml::XmlAttributeCollection::CopyTo(const ArrayPtr<SharedPtr<XmlAttribute>> &array, int32_t index)
```


| Parameter | Type | Description |
| --- | --- | --- |
| array | const ArrayPtr\<SharedPtr\<XmlAttribute\>\>\& | The array that is the destination of the objects copied from this collection. |
| index | int32_t | The index in the array where copying begins. |

## See Also

* Typedef [ArrayPtr](../../../system/arrayptr/)
* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XmlAttribute](../../xmlattribute/)
* Class [XmlAttributeCollection](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PDF for C++](../../../)
