DslDefinitionModelSerializationBehaviorSerializationMessages.MajorVersionMismatch Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.