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
)
參數
- getRootElement
類型:System.Func<ModelElement>
函式會在評估時傳回模型的根項目
備註
而不是以使這個困難對單元測試的 ModelingDocData 的相依性 (因為該建立相依性對載入) 我們使用回呼函式存取目前根項目與主機 ModelingDocData。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。