Compartilhar via


DslDefinitionModelSerializationHelperBase.TryCreateValidatingReader Method

Attempts to return a validating XML reader

Namespace:  Microsoft.VisualStudio.Modeling.DslDefinition
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.10.0.dll)

Syntax

'Declaração
Protected Overridable Function TryCreateValidatingReader ( _
    schemaResolver As ISchemaResolver, _
    reader As XmlReader, _
    serializationContext As SerializationContext _
) As XmlReader
protected virtual XmlReader TryCreateValidatingReader(
    ISchemaResolver schemaResolver,
    XmlReader reader,
    SerializationContext serializationContext
)
protected:
virtual XmlReader^ TryCreateValidatingReader(
    ISchemaResolver^ schemaResolver, 
    XmlReader^ reader, 
    SerializationContext^ serializationContext
)
abstract TryCreateValidatingReader : 
        schemaResolver:ISchemaResolver * 
        reader:XmlReader * 
        serializationContext:SerializationContext -> XmlReader 
override TryCreateValidatingReader : 
        schemaResolver:ISchemaResolver * 
        reader:XmlReader * 
        serializationContext:SerializationContext -> XmlReader 
protected function TryCreateValidatingReader(
    schemaResolver : ISchemaResolver, 
    reader : XmlReader, 
    serializationContext : SerializationContext
) : XmlReader

Parameters

Return Value

Type: System.Xml.XmlReader
If the Core domain model schema 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.

.NET Framework Security

See Also

Reference

DslDefinitionModelSerializationHelperBase Class

Microsoft.VisualStudio.Modeling.DslDefinition Namespace