IElementPartitionMapper Interface
Interface for service used to map elements partitions when reconstituting ElementGroupPrototypes
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'Dichiarazione
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 | |
---|---|---|
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. | |
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. | |
PartitionForClass | Determine the partition to be used as the default for instantiation of elements of the specified class | |
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.