ModelingPartitionMapper(Func<ModelElement>) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.