XmlSchemaSimpleContent.Content Propriedade
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Obtém um dos XmlSchemaSimpleContentRestriction ou XmlSchemaSimpleContentExtension.
public:
virtual property System::Xml::Schema::XmlSchemaContent ^ Content { System::Xml::Schema::XmlSchemaContent ^ get(); void set(System::Xml::Schema::XmlSchemaContent ^ value); };
public override System.Xml.Schema.XmlSchemaContent Content { get; set; }
member this.Content : System.Xml.Schema.XmlSchemaContent with get, set
Public Overrides Property Content As XmlSchemaContent
Valor de Propriedade
O conteúdo contido na XmlSchemaSimpleContentRestriction classe ou.XmlSchemaSimpleContentExtension
Exemplos
Usando o simpleContent elemento, a seguinte declaração de elemento contém um complexType que define o conteúdo do elemento como um decimal tipo com um único atributo (sizing):
<xs:element name="shoeSize">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:decimal">
<xs:attribute name="sizing">
<xs:restriction base="xs:string">
<xs:enumeration value="US"/>
<xs:enumeration value="European"/>
<xs:enumeration value="UK"/>
<xs:enumeration value="Japan"/>
</xs:restriction>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
Observações
O simpleContent elemento permite-lhe especificar um elemento como contendo um tipo simples sem elementos e restringir o valor do conteúdo do elemento ou estendê-lo com atributos.