Share via


DslDefinitionModelSerializationBehaviorSerializationMessages.MajorVersionMismatch Method

Add an error for MajorVersion mismatch.

Namespace:  Microsoft.VisualStudio.Modeling.DslDefinition
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.11.0.dll)

Syntax

'Declaration
Public Shared Sub MajorVersionMismatch ( _
    serializationContext As SerializationContext, _
    reader As XmlReader, _
    actualVersion As Integer, _
    expectedVersion As Integer _
)
public static void MajorVersionMismatch(
    SerializationContext serializationContext,
    XmlReader reader,
    int actualVersion,
    int expectedVersion
)
public:
static void MajorVersionMismatch(
    SerializationContext^ serializationContext, 
    XmlReader^ reader, 
    int actualVersion, 
    int expectedVersion
)
static member MajorVersionMismatch : 
        serializationContext:SerializationContext * 
        reader:XmlReader * 
        actualVersion:int * 
        expectedVersion:int -> unit
public static function MajorVersionMismatch(
    serializationContext : SerializationContext, 
    reader : XmlReader, 
    actualVersion : int, 
    expectedVersion : int
)

Parameters

  • reader
    Type: XmlReader

    The reader pointing to where the message is raised.

  • actualVersion
    Type: Int32

    Actual version from the file.

  • expectedVersion
    Type: Int32

    The version that's expected.

.NET Framework Security

See Also

Reference

DslDefinitionModelSerializationBehaviorSerializationMessages Class

Microsoft.VisualStudio.Modeling.DslDefinition Namespace