DslDefinitionModelSerializationHelper.LoadModel 方法 (SerializationResult, Partition, String, ISchemaResolver, ValidationController, ISerializerLocator)
加载 DslLibrary 实例。
命名空间: Microsoft.VisualStudio.Modeling.DslDefinition
程序集: Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.11.0(在 Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.11.0.dll 中)
语法
声明
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
)
参数
- serializationResult
类型:Microsoft.VisualStudio.Modeling.SerializationResult
- partition
类型:Microsoft.VisualStudio.Modeling.Partition
- fileName
类型:System.String
- schemaResolver
类型:Microsoft.VisualStudio.Modeling.ISchemaResolver
- validationController
类型:Microsoft.VisualStudio.Modeling.Validation.ValidationController
- serializerLocator
类型:Microsoft.VisualStudio.Modeling.ISerializerLocator
返回值
类型:Microsoft.VisualStudio.Modeling.DslDefinition.DslLibrary
加载的 DslLibrary 实例。
备注
替换基本 LoadModel 实现,为了确保核心域模型定义也是加载的。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。