XmlSchemaContentType 列舉
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
複雜型別之內容模型的列舉型別 (Enumeration)。 這表示 post-schema-validation 資訊集 (infoset) 中的內容。
public enum class XmlSchemaContentType
C#
public enum XmlSchemaContentType
type XmlSchemaContentType =
Public Enum XmlSchemaContentType
- 繼承
ElementOnly | 2 | 純項目內容。 |
Empty | 1 | 空白內容。 |
Mixed | 3 | 混合內容。 |
TextOnly | 0 | 純文字內容。 |
IsMixed
如果 屬性在具有 類型的 XmlSchemaComplexContent
屬性上 ContentModel
設定為 true
,則此處傳回的值為 Mixed
。 IsMixed
如果屬性為 false
,則值為 Empty
或 ElementOnly
。
如果屬性上的 ContentModel
型別具有 類型 XmlSchemaSimpleContent
,則這個值一律 TextOnly
為 。
產品 | 版本 |
---|---|
.NET | Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8 |
.NET Standard | 2.0, 2.1 |