Share via


DslDefinitionModelSerializationHelperBase.TryCreateValidatingReader Method

Definition

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.

Applies to