System::Xml::Schema::XmlSchemaCollection class
内容
[
隐藏
]XmlSchemaCollection class
包含 XML Schema 定义语言 (XSD) 和 XML-Data Reduced (XDR) 模式的缓存。
class XmlSchemaCollection : public System::Collections::Generic::IEnumerable<SharedPtr<System::Xml::Schema::XmlSchema>>
方法
| 方法 | 描述 |
|---|---|
| Add(const String&, const String&) | 将由给定 URL 定位的模式添加到模式集合中。 |
| Add(const String&, const SharedPtr<XmlReader>&) | 将包含在 XmlReader 中的模式添加到模式集合中。 |
| Add(const String&, const SharedPtr<XmlReader>&, const SharedPtr<System::Xml::XmlResolver>&) | 将包含在 XmlReader 中的模式添加到模式集合中。指定的 XmlResolver 用于解析任何外部资源。 |
| Add(const SharedPtr<XmlSchema>&) | 将 XmlSchema 添加到集合中。 |
| Add(const SharedPtr<XmlSchema>&, const SharedPtr<System::Xml::XmlResolver>&) | 将 XmlSchema 添加到集合中。指定的 XmlResolver 用于解析任何外部引用。 |
| Add(const SharedPtr<XmlSchemaCollection>&) | 将给定集合中定义的所有命名空间(包括其关联的模式)添加到此集合中。 |
| Contains(const SharedPtr<XmlSchema>&) | 返回一个值,指示指定的 XmlSchema 的 targetNamespace 是否在集合中。 |
| Contains(const String&) | 返回一个值,指示具有指定命名空间的模式是否在集合中。 |
| CopyTo(const ArrayPtr<SharedPtr<XmlSchema>>&, int32_t) | 将此集合中的所有 XmlSchema 对象复制到给定数组中,从给定索引开始。 |
| get_Count() | 返回此集合中定义的命名空间数量。 |
| get_NameTable() | 返回在加载新模式时由 XmlSchemaCollection 使用的默认 XmlNameTable。 |
| GetEnumerator() override | 提供对模式集合进行迭代的支持。 |
| idx_get(const String&) | 返回与给定命名空间 URI 关联的 XmlSchema。 |
| XmlSchemaCollection() | 初始化一个新的 XmlSchemaCollection 类实例。 |
| XmlSchemaCollection(const SharedPtr<XmlNameTable>&) | 使用指定的 XmlNameTable 初始化一个新的 XmlSchemaCollection 类实例。加载模式时会使用该 XmlNameTable。 |
Typedefs
| 类型定义 | 描述 |
|---|---|
| Ptr | 此类实例的共享指针别名。 |
备注
Deprecated
XmlSchemaCollection 类已过时。请改用 XmlSchemaSet。
此类的对象只能使用 System::MakeObject() 函数分配。切勿在栈上或使用 new 运算符创建此类型的实例,因为这会导致运行时错误和/或断言故障。始终将此类包装到 System::SmartPtr 指针中,并使用该指针将其作为参数传递给函数。
另见
- Class IEnumerable
- Namespace System::Xml::Schema
- Library Aspose.Font for C++