Sdílet prostřednictvím


ModelingPartitionMapper.DeterminePartitionForElement Method

Definition

Determine the partition to use for a particular ProtoElement.

protected:
 virtual Microsoft::VisualStudio::Modeling::Partition ^ DeterminePartitionForElement(Microsoft::VisualStudio::Modeling::ElementGroupPrototype ^ groupPrototype, Microsoft::VisualStudio::Modeling::ProtoElement ^ protoElement, Microsoft::VisualStudio::Modeling::Shell::ModelingPartitionMapper::PartitionMappings ^ partitions);
protected virtual Microsoft.VisualStudio.Modeling.Partition DeterminePartitionForElement (Microsoft.VisualStudio.Modeling.ElementGroupPrototype groupPrototype, Microsoft.VisualStudio.Modeling.ProtoElement protoElement, Microsoft.VisualStudio.Modeling.Shell.ModelingPartitionMapper.PartitionMappings partitions);
abstract member DeterminePartitionForElement : Microsoft.VisualStudio.Modeling.ElementGroupPrototype * Microsoft.VisualStudio.Modeling.ProtoElement * Microsoft.VisualStudio.Modeling.Shell.ModelingPartitionMapper.PartitionMappings -> Microsoft.VisualStudio.Modeling.Partition
override this.DeterminePartitionForElement : Microsoft.VisualStudio.Modeling.ElementGroupPrototype * Microsoft.VisualStudio.Modeling.ProtoElement * Microsoft.VisualStudio.Modeling.Shell.ModelingPartitionMapper.PartitionMappings -> Microsoft.VisualStudio.Modeling.Partition
Protected Overridable Function DeterminePartitionForElement (groupPrototype As ElementGroupPrototype, protoElement As ProtoElement, partitions As ModelingPartitionMapper.PartitionMappings) As Partition

Parameters

groupPrototype
ElementGroupPrototype

The EGP being merged, or tested for mergability

protoElement
ProtoElement

The individual ProtoElement for which a partition is being requested

partitions
ModelingPartitionMapper.PartitionMappings

Partition mapping cache

Returns

The partition that should be used to reconstitue the prototype element

Applies to