IElementPartitionMapper.PartitionForElement 方法
确定要使用的分区重建原型元素
命名空间: Microsoft.VisualStudio.Modeling
程序集: Microsoft.VisualStudio.Modeling.Sdk.11.0(在 Microsoft.VisualStudio.Modeling.Sdk.11.0.dll 中)
语法
声明
Function PartitionForElement ( _
groupPrototype As ElementGroupPrototype, _
mergePartition As Partition, _
protoElement As ProtoElement, _
cookie As Object _
) As Partition
Partition PartitionForElement(
ElementGroupPrototype groupPrototype,
Partition mergePartition,
ProtoElement protoElement,
Object cookie
)
参数
- groupPrototype
类型:Microsoft.VisualStudio.Modeling.ElementGroupPrototype
包含 protoElement 的 ElementGroupPrototype
- mergePartition
类型:Microsoft.VisualStudio.Modeling.Partition
合并目标分区。不一定组件将重建的位置。
- protoElement
类型:Microsoft.VisualStudio.Modeling.ProtoElement
原型元素 (或为) 中重建
- cookie
类型:System.Object
,当 BeginMapping 调用,对象由此分区制图员返回。可以为空,如果未使用。
返回值
类型:Microsoft.VisualStudio.Modeling.Partition
的分区重建元素的
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。