Partilhar via


IElementPartitionMapper.PartitionForElement Method

Definition

Determine the partition to be used to reconstitute a prototype element

public:
 Microsoft::VisualStudio::Modeling::Partition ^ PartitionForElement(Microsoft::VisualStudio::Modeling::ElementGroupPrototype ^ groupPrototype, Microsoft::VisualStudio::Modeling::Partition ^ mergePartition, Microsoft::VisualStudio::Modeling::ProtoElement ^ protoElement, System::Object ^ cookie);
public Microsoft.VisualStudio.Modeling.Partition PartitionForElement (Microsoft.VisualStudio.Modeling.ElementGroupPrototype groupPrototype, Microsoft.VisualStudio.Modeling.Partition mergePartition, Microsoft.VisualStudio.Modeling.ProtoElement protoElement, object cookie);
abstract member PartitionForElement : Microsoft.VisualStudio.Modeling.ElementGroupPrototype * Microsoft.VisualStudio.Modeling.Partition * Microsoft.VisualStudio.Modeling.ProtoElement * obj -> Microsoft.VisualStudio.Modeling.Partition
Public Function PartitionForElement (groupPrototype As ElementGroupPrototype, mergePartition As Partition, protoElement As ProtoElement, cookie As Object) As Partition

Parameters

groupPrototype
ElementGroupPrototype

The ElementGroupPrototype containing protoElement

mergePartition
Partition

The merge target partition. Not necessarily where the elements will be reconstituted.

protoElement
ProtoElement

The prototype element being (or to be) reconstituted

cookie
Object

The object returned by this partition mapper when BeginMapping was called. Can be null if not used.

Returns

Partition in which to reconstitute the element

Applies to