ModelingPartitionMapper Constructor
Construct a new ModelingPartitionMapper
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll)
Syntax
'Declaration
Protected Friend Sub New ( _
getRootElement As Func(Of ModelElement) _
)
protected internal ModelingPartitionMapper(
Func<ModelElement> getRootElement
)
protected public:
ModelingPartitionMapper(
Func<ModelElement^>^ getRootElement
)
new :
getRootElement:Func<ModelElement> -> ModelingPartitionMapper
function ModelingPartitionMapper(
getRootElement : Func<ModelElement>
)
Parameters
getRootElement
Type: System.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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.