## XmlSchemaObjectCollection::CopyTo method


Copies all the XmlSchemaObjects from the collection into the given array, starting at the given index.

```cpp
void System::Xml::Schema::XmlSchemaObjectCollection::CopyTo(const ArrayPtr<SharedPtr<XmlSchemaObject>> &array, int32_t index)
```


| Parameter | Type | Description |
| --- | --- | --- |
| array | const ArrayPtr\<SharedPtr\<XmlSchemaObject\>\>\& | The array that is the destination of the elements copied from the [XmlSchemaObjectCollection](../). The array must have zero-based indexing. |
| index | int32_t | The zero-based index in the array at which copying begins. |

## See Also

* Typedef [ArrayPtr](../../../system/arrayptr/)
* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XmlSchemaObject](../../xmlschemaobject/)
* Class [XmlSchemaObjectCollection](../)
* Namespace [System::Xml::Schema](../../)
* Library [Aspose.PUB for C++](../../../)
