Partilhar via


DslDefinitionModelSerializationBehaviorSerializationMessages.MajorVersionMismatch Method

Definition

Add an error for MajorVersion mismatch.

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

Parameters

serializationContext
SerializationContext

SerializationContext to add the error message to.

reader
XmlReader

The reader pointing to where the message is raised.

actualVersion
Int32

Actual version from the file.

expectedVersion
Int32

The version that's expected.

Applies to