Share via


ModelingPartitionMapper(Func<ModelElement>) Constructor

Definition

Construct a new ModelingPartitionMapper

protected public:
 ModelingPartitionMapper(Func<Microsoft::VisualStudio::Modeling::ModelElement ^> ^ getRootElement);
protected internal ModelingPartitionMapper (Func<Microsoft.VisualStudio.Modeling.ModelElement> getRootElement);
new Microsoft.VisualStudio.Modeling.Shell.ModelingPartitionMapper : Func<Microsoft.VisualStudio.Modeling.ModelElement> -> Microsoft.VisualStudio.Modeling.Shell.ModelingPartitionMapper
Protected Friend Sub New (getRootElement As Func(Of ModelElement))

Parameters

getRootElement
Func<ModelElement>

Function which, when evaluated, returns the root element of the model

Remarks

Rather than create a dependency on ModelingDocData that makes this difficult to unit test (because that creates a dependency on VS hosting) we use a callback function to access the current root element associated with the host ModelingDocData.

Applies to