XmlSchemaSimpleContent.Content Özellik
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
veya XmlSchemaSimpleContentExtension'lerinden XmlSchemaSimpleContentRestriction birini alır.
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
Özellik Değeri
veya XmlSchemaSimpleContentExtension sınıfı içinde XmlSchemaSimpleContentRestriction yer alan içerik.
Örnekler
simpleContent öğesini kullanarak aşağıdaki öğe bildirimi, öğesinin içeriğini tek bir öznitelikle (sizing) bir decimal tür olarak tanımlayan bir içerircomplexType:
<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>
Açıklamalar
öğesi, simpleContent öğe içermeyen basit bir tür içeren bir öğe belirtmenize ve öğenin içeriğinin değerini kısıtlamanıza veya içeriği özniteliklerle genişletmenize olanak tanır.