Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Add an error for Version mismatch.
Namespace: Microsoft.VisualStudio.Modeling.DslDefinition
Assembly: Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.10.0.dll)
Syntax
'Declaration
Public Shared Sub VersionMismatch ( _
serializationContext As SerializationContext, _
reader As XmlReader, _
expectedVersion As Version, _
actualVersion As Version _
)
public static void VersionMismatch(
SerializationContext serializationContext,
XmlReader reader,
Version expectedVersion,
Version actualVersion
)
public:
static void VersionMismatch(
SerializationContext^ serializationContext,
XmlReader^ reader,
Version^ expectedVersion,
Version^ actualVersion
)
static member VersionMismatch :
serializationContext:SerializationContext *
reader:XmlReader *
expectedVersion:Version *
actualVersion:Version -> unit
public static function VersionMismatch(
serializationContext : SerializationContext,
reader : XmlReader,
expectedVersion : Version,
actualVersion : Version
)
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
DslDefinitionModelSerializationBehaviorSerializationMessages Class