## XmlSchemaValidator::AddSchema method


向用于验证的模式集合添加 XML [Schema](../../) 定义语言 (XSD) 模式。

```cpp
void System::Xml::Schema::XmlSchemaValidator::AddSchema(const SharedPtr<XmlSchema> &schema)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| schema | const SharedPtr\<XmlSchema\>\& | 要添加到用于验证的模式集合中的 [XmlSchema](../../xmlschema/) 对象。 |

## 另见

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