Compartir por


XmlDocument.Schemas Propiedad

Definición

Obtiene o establece el XmlSchemaSet objeto asociado a este XmlDocumentobjeto .

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

Valor de propiedad

Objeto XmlSchemaSet que contiene los esquemas del lenguaje de definición de esquemas XML (XSD) asociados a este XmlDocumentobjeto ; de lo contrario, un objeto vacío XmlSchemaSet .

Comentarios

Los esquemas contenidos en un XmlSchemaSet objeto asociado a un XmlDocument objeto se usan para la validación cuando se ejecuta el Validate método de .XmlDocument

Cuando un XmlDocument objeto se inicializa con datos XML de un XmlReader objeto , el XmlSchemaSet objeto se carga desde la Schemas propiedad del XmlReader objeto .

Se aplica a

Consulte también