Share via


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)

Syntax

'Declaration
Public Interface IElementPartitionMapper
public interface IElementPartitionMapper
public interface class IElementPartitionMapper
type IElementPartitionMapper =  interface end
public interface IElementPartitionMapper

The IElementPartitionMapper type exposes the following members.

Methods

  Name Description
Public method BeginMapping 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.
Public method EndMapping 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.
Public method PartitionForClass Determine the partition to be used as the default for instantiation of elements of the specified class
Public method PartitionForElement Determine the partition to be used to reconstitute a prototype element

Top

Remarks

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.

See Also

Reference

Microsoft.VisualStudio.Modeling Namespace