XmlSchemaSimpleContent.Content プロパティ

定義

XmlSchemaSimpleContentRestriction または XmlSchemaSimpleContentExtension の 1 つを取得します。

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; }
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

プロパティ値

XmlSchemaContent

XmlSchemaSimpleContentRestriction クラスまたは XmlSchemaSimpleContentExtension クラスに格納される内容。

要素をsimpleContent使用して、次の要素宣言には、要素の内容を単一の属性 (sizing) を持つ型としてdecimal定義する a が含まれていますcomplexType

<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>  

注釈

要素 simpleContent を使用すると、要素のない単純な型を含む要素を指定し、要素のコンテンツの値を制限したり、属性を使用してコンテンツを拡張したりできます。

適用対象