DslDefinitionModelSerializationHelperBase.TryCreateValidatingReader Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Attempts to return a validating XML reader
protected:
virtual System::Xml::XmlReader ^ TryCreateValidatingReader(Microsoft::VisualStudio::Modeling::ISchemaResolver ^ schemaResolver, System::Xml::XmlReader ^ reader, Microsoft::VisualStudio::Modeling::SerializationContext ^ serializationContext);
protected virtual System.Xml.XmlReader TryCreateValidatingReader (Microsoft.VisualStudio.Modeling.ISchemaResolver schemaResolver, System.Xml.XmlReader reader, Microsoft.VisualStudio.Modeling.SerializationContext serializationContext);
abstract member TryCreateValidatingReader : Microsoft.VisualStudio.Modeling.ISchemaResolver * System.Xml.XmlReader * Microsoft.VisualStudio.Modeling.SerializationContext -> System.Xml.XmlReader
override this.TryCreateValidatingReader : Microsoft.VisualStudio.Modeling.ISchemaResolver * System.Xml.XmlReader * Microsoft.VisualStudio.Modeling.SerializationContext -> System.Xml.XmlReader
Protected Overridable Function TryCreateValidatingReader (schemaResolver As ISchemaResolver, reader As XmlReader, serializationContext As SerializationContext) As XmlReader
Parameters
- schemaResolver
- ISchemaResolver
- reader
- XmlReader
- serializationContext
- SerializationContext
Returns
If all of the schema for registered serializers and all of the schema referenced in the file can be resolved, then a validating reader is returned. Otherwise, the supplied reader is returned. The serialization context will contain warning messages for all schema that could not be resolved.