XmlDocument.Schemas 屬性

定義

取得或設定與這個 XmlDocument 相關聯的 XmlSchemaSet 物件。

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

屬性值

XmlSchemaSet

XmlSchemaSet 物件,包含與這個 XmlDocument 相關聯的 XML 結構描述定義語言 (XSD) 結構描述;否則為空白的 XmlSchemaSet 物件。

備註

執行 方法 XmlDocumentValidate ,與 物件相關聯的 XmlDocument 物件中包含的 XmlSchemaSet 架構會用於驗證。

XmlDocument從 物件使用 XML 資料 XmlReader 初始化物件時, XmlSchemaSet 物件會從 Schemas 物件的 屬性 XmlReader 載入。

適用於

另請參閱