XmlDocument.Schemas 属性

定义

获取或设置与此 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

为一个包含与此 XmlSchemaSet 关联的 XML 架构定义语言 (XSD) 架构的 XmlDocument 对象;否则,为一个空 XmlSchemaSet 对象。An XmlSchemaSet object containing the XML Schema Definition Language (XSD) schemas associated with this XmlDocument; otherwise, an empty XmlSchemaSet object.

注解

XmlSchemaSet当执行的方法时,与对象关联的对象中包含的架构 XmlDocument 用于验证 Validate 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.

XmlDocument使用对象中的 XML 数据初始化对象时 XmlReaderXmlSchemaSet 会从对象的属性加载对象 Schemas XmlReaderWhen 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.

适用于

另请参阅