DslDefinitionModelSerializationHelperBase.TryCreateValidatingReader Method

Attempts to return a validating XML reader

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

Syntax

'Declaration
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

  • reader
    Type: XmlReader

Return Value

Type: 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