构造新的 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
)
参数
- getRootElement
类型:System.Func<ModelElement>
当需要计算时,返回模型的根元素功能
备注
无需创建在这使难进行单元测试的 ModelingDocData 的依赖关系,这些依赖关系 (因为它创建一个依赖关系,VS 承载) 我们可使用回调函数访问当前根元素与托管 ModelingDocData。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。