XmlSchemaElement.SchemaType 屬性

定義

取得或設定元素的型別。 這可以是複雜型態或簡單型態。

public:
 property System::Xml::Schema::XmlSchemaType ^ SchemaType { System::Xml::Schema::XmlSchemaType ^ get(); void set(System::Xml::Schema::XmlSchemaType ^ value); };
public System.Xml.Schema.XmlSchemaType? SchemaType { get; set; }
public System.Xml.Schema.XmlSchemaType SchemaType { get; set; }
member this.SchemaType : System.Xml.Schema.XmlSchemaType with get, set
Public Property SchemaType As XmlSchemaType

屬性值

元素的類型。

備註

若要宣告使用現有 simpleTypecomplexType 定義的元素,請使用 property SchemaType 來指定現有型別。 若RefName屬性存在,complexType則 、 、 simpleTypekeykeyrefuniquenillabledefaultfixedformblockSchemaType且 屬性不存在。

適用於