## XmlSchemaCollection::CopyTo method


将此集合中的所有 [XmlSchema](../../xmlschema/) 对象复制到给定数组中，从给定索引开始。

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


| Parameter | Type | 描述 |
| --- | --- | --- |
| array | const ArrayPtr\<SharedPtr\<XmlSchema\>\>\& | 用于复制对象的数组。 |
| 索引 | int32_t | 复制将在 **array** 中的索引处开始。 |

## 另见

* Typedef [ArrayPtr](../../../system/arrayptr/)
* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XmlSchema](../../xmlschema/)
* Class [XmlSchemaCollection](../)
* Namespace [System::Xml::Schema](../../)
* Library [Aspose.Page for C++](../../../)
