DelegatingXmlReader.SchemaInfo PropertyDelegatingXmlReader.SchemaInfo PropertyDelegatingXmlReader::SchemaInfo Property

Gets the schema information that has been assigned to the current node as a result of schema validation.

Syntax

Public Overrides ReadOnly Property SchemaInfo As System.Xml.Schema.IXmlSchemaInfo
        Get
public override System.Xml.Schema.IXmlSchemaInfo SchemaInfo { get; }
public:
virtual property System.Xml.Schema::IXmlSchemaInfo^ SchemaInfo {
    System.Xml.Schema::IXmlSchemaInfo^ get();
}
 

Property Value

Type: System.Xml.Schema.IXmlSchemaInfoSystem.Xml.Schema.IXmlSchemaInfoSystem.Xml.Schema::IXmlSchemaInfo^

An IXmlSchemaInfoIXmlSchemaInfoIXmlSchemaInfo object containing the schema information for the current node. Schema information can be set on elements, attributes, or on text nodes with a non-null ValueTypeValueTypeValueType (typed values). If the current node is not one of the above node types, or if the XmlReaderXmlReaderXmlReader instance does not report schema information, this property returns null a null reference (Nothing in Visual Basic) nullptr. If this property is called from an XmlTextReaderXmlTextReaderXmlTextReader or an XmlValidatingReaderXmlValidatingReaderXmlValidatingReader object, this property always returns null a null reference (Nothing in Visual Basic) nullptr. These XmlReaderXmlReaderXmlReader implementations do not expose schema information through the SchemaInfoSchemaInfoSchemaInfo property.