XmlSchemaContentType 列舉

定義

複雜型別之內容模型的列舉型別 (Enumeration)。 這表示 post-schema-validation 資訊集 (infoset) 中的內容。

C#
public enum XmlSchemaContentType
繼承
XmlSchemaContentType

欄位

ElementOnly 2

純項目內容。

Empty 1

空白內容。

Mixed 3

混合內容。

TextOnly 0

純文字內容。

備註

IsMixed如果 屬性在具有 類型的 XmlSchemaComplexContent 屬性上 ContentModel 設定為 true ,則此處傳回的值為 MixedIsMixed如果屬性為 false ,則值為 EmptyElementOnly

如果屬性上的 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