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
- schemaResolver
Type: Microsoft.VisualStudio.Modeling.ISchemaResolver
- reader
Type: XmlReader
- serializationContext
Type: Microsoft.VisualStudio.Modeling.SerializationContext
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.