XmlDocument.Schemas XmlDocument.Schemas XmlDocument.Schemas XmlDocument.Schemas Property

定義

取得或設定與這個 XmlDocument 相關聯的 XmlSchemaSet 物件。Gets or sets the XmlSchemaSet object associated with this XmlDocument.

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 物件,包含與這個 XmlDocument 相關聯的 XML 結構描述定義語言 (XSD) 結構描述;否則為空白的 XmlSchemaSet 物件。An XmlSchemaSet object containing the XML Schema Definition Language (XSD) schemas associated with this XmlDocument; otherwise, an empty XmlSchemaSet object.

備註

當執行的XmlSchemaSet Validate方法XmlDocument 時,會使用與物件相關聯之物件中所包含的架構來進行驗證。XmlDocumentThe schemas contained in an XmlSchemaSet object associated with an XmlDocument object are used for validation when the Validate method of an XmlDocument is executed.

XmlReader XmlSchemaSet Schemas當物件以物件的 XML 資料初始化時, 會從XmlReader物件的屬性載入物件。 XmlDocumentWhen an XmlDocument object is initialized with XML data from an XmlReader object, the XmlSchemaSet object is loaded from the Schemas property of the XmlReader object.

適用於

另請參閱