ModelingPartitionMapper.DeterminePartitionForElement 方法
決定要用於特定 ProtoElement 的資料分割。
命名空間: Microsoft.VisualStudio.Modeling.Shell
組件: Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll 中)
語法
'宣告
Protected Overridable Function DeterminePartitionForElement ( _
groupPrototype As ElementGroupPrototype, _
protoElement As ProtoElement, _
partitions As ModelingPartitionMapper.PartitionMappings _
) As Partition
protected virtual Partition DeterminePartitionForElement(
ElementGroupPrototype groupPrototype,
ProtoElement protoElement,
ModelingPartitionMapper.PartitionMappings partitions
)
參數
- groupPrototype
類型:Microsoft.VisualStudio.Modeling.ElementGroupPrototype
已針對 mergability 進行合併或測試的EGP
- protoElement
類型:Microsoft.VisualStudio.Modeling.ProtoElement
為其要求資料分割的個別 ProtoElement
- partitions
類型:Microsoft.VisualStudio.Modeling.Shell.ModelingPartitionMapper.PartitionMappings
資料分割對應快取
傳回值
類型:Microsoft.VisualStudio.Modeling.Partition
應該用來重新建構原型項目的資料分割
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。