## XmlSchemaValidator::AddSchema method


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

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


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

## 另见

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