DslDefinitionModelSerializationHelper.LoadModel Method (SerializationResult, Partition, String, ISchemaResolver, ValidationController, ISerializerLocator)
Loads a DslLibrary instance.
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 Overrides Function LoadModel ( _
serializationResult As SerializationResult, _
partition As Partition, _
fileName As String, _
schemaResolver As ISchemaResolver, _
validationController As ValidationController, _
serializerLocator As ISerializerLocator _
) As DslLibrary
public override DslLibrary LoadModel(
SerializationResult serializationResult,
Partition partition,
string fileName,
ISchemaResolver schemaResolver,
ValidationController validationController,
ISerializerLocator serializerLocator
)
public:
virtual DslLibrary^ LoadModel(
SerializationResult^ serializationResult,
Partition^ partition,
String^ fileName,
ISchemaResolver^ schemaResolver,
ValidationController^ validationController,
ISerializerLocator^ serializerLocator
) override
abstract LoadModel :
serializationResult:SerializationResult *
partition:Partition *
fileName:string *
schemaResolver:ISchemaResolver *
validationController:ValidationController *
serializerLocator:ISerializerLocator -> DslLibrary
override LoadModel :
serializationResult:SerializationResult *
partition:Partition *
fileName:string *
schemaResolver:ISchemaResolver *
validationController:ValidationController *
serializerLocator:ISerializerLocator -> DslLibrary
public override function LoadModel(
serializationResult : SerializationResult,
partition : Partition,
fileName : String,
schemaResolver : ISchemaResolver,
validationController : ValidationController,
serializerLocator : ISerializerLocator
) : DslLibrary
Parameters
- serializationResult
Type: Microsoft.VisualStudio.Modeling.SerializationResult
- partition
Type: Microsoft.VisualStudio.Modeling.Partition
- fileName
Type: System.String
- schemaResolver
Type: Microsoft.VisualStudio.Modeling.ISchemaResolver
- validationController
Type: Microsoft.VisualStudio.Modeling.Validation.ValidationController
- serializerLocator
Type: Microsoft.VisualStudio.Modeling.ISerializerLocator
Return Value
Type: Microsoft.VisualStudio.Modeling.DslDefinition.DslLibrary
The loaded DslLibrary instance.
Remarks
Replaces the base LoadModel implementation so we ensure the Core domain model definition is loaded too.
.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.