System::Xml::Schema::XmlSchemaComplexType 类

XmlSchemaComplexType class

表示来自 XML SchemacomplexType 元素,依据万维网 Web 联盟 (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 指针中,并使用该指针将其作为参数传递给函数。

另见