Share via


DslDefinitionModelSerializationBehaviorSerializationMessages.VersionMismatch Method

Definition

Add an error for Version mismatch.

public:
 static void VersionMismatch(Microsoft::VisualStudio::Modeling::SerializationContext ^ serializationContext, System::Xml::XmlReader ^ reader, Version ^ expectedVersion, Version ^ actualVersion);
public static void VersionMismatch (Microsoft.VisualStudio.Modeling.SerializationContext serializationContext, System.Xml.XmlReader reader, Version expectedVersion, Version actualVersion);
static member VersionMismatch : Microsoft.VisualStudio.Modeling.SerializationContext * System.Xml.XmlReader * Version * Version -> unit
Public Shared Sub VersionMismatch (serializationContext As SerializationContext, reader As XmlReader, expectedVersion As Version, actualVersion As Version)

Parameters

serializationContext
SerializationContext

SerializationContext to add the error message to.

reader
XmlReader

The reader pointing to where the message is raised.

expectedVersion
Version

The version that's expected.

actualVersion
Version

Actual version from the file.

Applies to