ModelingPartitionMapper 构造函数

构造新的 ModelingPartitionMapper

命名空间:  Microsoft.VisualStudio.Modeling.Shell
程序集:  Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll 中)

语法

声明
Protected Friend Sub New ( _
    getRootElement As Func(Of ModelElement) _
)
protected internal ModelingPartitionMapper(
    Func<ModelElement> getRootElement
)

参数

备注

无需创建在这使难进行单元测试的 ModelingDocData 的依赖关系,这些依赖关系 (因为它创建一个依赖关系,VS 承载) 我们可使用回调函数访问当前根元素与托管 ModelingDocData。

.NET Framework 安全性

请参阅

参考

ModelingPartitionMapper 类

Microsoft.VisualStudio.Modeling.Shell 命名空间