CoreDesignSurfaceSerializationBehaviorSerializationMessages::VersionMismatch Method (SerializationContext^, XmlReader^, Version^, Version^)

 

Add an error for Version mismatch.

Namespace:   Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)

public:
static void VersionMismatch(
	SerializationContext^ serializationContext,
	XmlReader^ reader,
	Version^ expectedVersion,
	Version^ actualVersion
)

Parameters

serializationContext
Type: Microsoft.VisualStudio.Modeling::SerializationContext^

SerializationContext to add the error message to.

reader
Type: System.Xml::XmlReader^

The reader pointing to where the message is raised.

expectedVersion
Type: System::Version^

The version that's expected.

actualVersion
Type: System::Version^

Actual version from the file.

Return to top
Show: