System::Xml::Schema::XmlSchemaComplexType 类

XmlSchemaComplexType class

表示来自 XML SchemacomplexType 元素,符合万维网联盟 (W3C) 的规范。此类定义了一种复合类型,用于确定元素的属性集合和内容。

class XmlSchemaComplexType : public System::Xml::Schema::XmlSchemaType

方法

方法描述
get_AnyAttribute()返回复合类型的 XmlSchemaAnyAttribute 组件的值。
get_Attributes()返回复合类型的属性集合。
get_AttributeUses()返回此复合类型及其基类型的所有已编译属性的集合。
get_AttributeWildcard()返回此复合类型及其基类型的 anyAttribute 的后编译值。
get_Block()返回 block 属性。
get_BlockResolved()返回类型在编译为后模式验证信息集(infoset)后的值。该值指示在实例文档中使用 xsi:type 时类型的强制方式。
get_ContentModel()返回此复合类型的后编译 XmlSchemaContentModel
get_ContentType()返回复合类型的内容模型,其中包含后编译值。
get_ContentTypeParticle()返回保存 XmlSchemaComplexType::get_ContentType 粒子的后编译值的粒子。
get_IsAbstract()返回决定 complexType 元素是否可以在实例文档中使用的信息。
get_IsMixed() override返回决定复合类型是否具有混合内容模型(内容中包含标记)的信息。
get_Particle()返回组合器类型,可为以下之一的类:XmlSchemaGroupRefXmlSchemaChoiceXmlSchemaAllXmlSchemaSequence
set_AnyAttribute(const SharedPtr<XmlSchemaAnyAttribute>&)设置复合类型的 XmlSchemaAnyAttribute 组件的值。
set_Block(XmlSchemaDerivationMethod)设置 block 属性。
set_ContentModel(const SharedPtr<XmlSchemaContentModel>&)设置此复合类型的后编译 XmlSchemaContentModel
set_IsAbstract(bool)设置决定 complexType 元素是否可以在实例文档中使用的信息。
set_IsMixed(bool) override设置决定复合类型是否具有混合内容模型(内容中包含标记)的信息。
set_Particle(const SharedPtr<XmlSchemaParticle>&)设置组合器类型,可为以下之一的类:XmlSchemaGroupRefXmlSchemaChoiceXmlSchemaAllXmlSchemaSequence
XmlSchemaComplexType()初始化 XmlSchemaComplexType 类的新实例。

Typedefs

类型定义描述
Ptr此类实例的共享指针别名。

备注

此类的对象只能使用 System::MakeObject() 函数分配。切勿在栈上或使用 new 运算符创建此类型的实例,因为这会导致运行时错误和/或断言故障。始终将此类包装在 System::SmartPtr 指针中,并使用该指针将其作为参数传递给函数。

另见