XmlSchemaComplexType.IsMixed 屬性

定義

取得或設定資訊,決定複雜類型是否具有混合內容模型 (內容中的標記)。Gets or sets information that determines if the complex type has a mixed content model (markup within the content).

public:
 virtual property bool IsMixed { bool get(); void set(bool value); };
public override bool IsMixed { get; set; }
member this.IsMixed : bool with get, set
Public Overrides Property IsMixed As Boolean

屬性值

Boolean

如果這個複雜型別的子項目之間可以出現字元資料,則為 true,否則為 falsetrue, if character data can appear between child elements of this complex type; otherwise, false. 預設為 falseThe default is false. 選擇性。Optional.

備註

指出字元資料是否可以出現在這個的子項目之間 complexTypeIndicates if character data can appear between the child elements of this complexType. 如果 simpleContent 元素是子項目,則 mixed 不允許 (false) 屬性。If the simpleContent element is a child element, the mixed attribute is not allowed (false). 如果專案 complexContent 是子項目,則 mixed 屬性可以覆寫于 mixed 元素上的屬性 complexContentIf the complexContent element is a child element, the mixed attribute can be overridden by the mixed attribute on the complexContent element.

適用於