IElementPartitionMapper Interface

 

Interface for service used to map elements partitions when reconstituting ElementGroupPrototypes

Namespace:   Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)

public interface class IElementPartitionMapper

NameDescription
System_CAPS_pubmethodBeginMapping(ElementGroupPrototype^, Partition^)

Notification that a series of partition mapping requests are bout to be made for a particular ElementGroupPrototype and merge (or target) partition. This is an opportunity to perform one-off initialization and establish a context for the subsequent mapping calls.

System_CAPS_pubmethodEndMapping(ElementGroupPrototype^, Partition^, Object^)

Notification that the ElementGroupHydrator argument has finished reconstituting elements and will not be making any more partition resolution requests. An opportunity to tear down any per-hydration state.

System_CAPS_pubmethodPartitionForClass(Partition^, Guid)

Determine the partition to be used as the default for instantiation of elements of the specified class

System_CAPS_pubmethodPartitionForElement(ElementGroupPrototype^, Partition^, ProtoElement^, Object^)

Determine the partition to be used to reconstitute a prototype element

ProtoLinks are always reconstituted into the partition of the source of the relationship, so the partition mapper is not asked to resolve partitions for links.

Return to top
Show: