DslDefinitionModelSerializationHelperBase.LoadModelAndDiagram Method (Store, String, String, ISchemaResolver, ValidationController, ISerializerLocator)
Loads a DslLibrary instance and its associated diagram file into the default partition of the given store, and ignore serialization result.
Namespace: Microsoft.VisualStudio.Modeling.DslDefinition
Assembly: Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.12.0.dll)
Syntax
'Declaration
Public Overridable Function LoadModelAndDiagram ( _
store As Store, _
modelFileName As String, _
diagramFileName As String, _
schemaResolver As ISchemaResolver, _
validationController As ValidationController, _
serializerLocator As ISerializerLocator _
) As DslLibrary
public virtual DslLibrary LoadModelAndDiagram(
Store store,
string modelFileName,
string diagramFileName,
ISchemaResolver schemaResolver,
ValidationController validationController,
ISerializerLocator serializerLocator
)
public:
virtual DslLibrary^ LoadModelAndDiagram(
Store^ store,
String^ modelFileName,
String^ diagramFileName,
ISchemaResolver^ schemaResolver,
ValidationController^ validationController,
ISerializerLocator^ serializerLocator
)
abstract LoadModelAndDiagram :
store:Store *
modelFileName:string *
diagramFileName:string *
schemaResolver:ISchemaResolver *
validationController:ValidationController *
serializerLocator:ISerializerLocator -> DslLibrary
override LoadModelAndDiagram :
store:Store *
modelFileName:string *
diagramFileName:string *
schemaResolver:ISchemaResolver *
validationController:ValidationController *
serializerLocator:ISerializerLocator -> DslLibrary
public function LoadModelAndDiagram(
store : Store,
modelFileName : String,
diagramFileName : String,
schemaResolver : ISchemaResolver,
validationController : ValidationController,
serializerLocator : ISerializerLocator
) : DslLibrary
Parameters
store
Type: Microsoft.VisualStudio.Modeling.StoreThe new DslLibrary instance will be created into the default partition of this store.
modelFileName
Type: System.StringName of the file from which the DslLibrary instance will be deserialized.
diagramFileName
Type: System.StringName of the file from which the DslDesignerDiagram instance will be deserialized.
schemaResolver
Type: Microsoft.VisualStudio.Modeling.ISchemaResolverAn ISchemaResolver that allows the serializer to do schema validation on the root element (and everything inside it). If null is passed, schema validation will not be performed.
validationController
Type: Microsoft.VisualStudio.Modeling.Validation.ValidationControllerA ValidationController that will be used to do load-time validation (validations with validation category "Load"). If null is passed, load-time validation will not be performed.
- serializerLocator
Type: Microsoft.VisualStudio.Modeling.ISerializerLocator
Return Value
Type: Microsoft.VisualStudio.Modeling.DslDefinition.DslLibrary
The loaded DslLibrary instance.
.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.