IMergeElements.ChooseMergeTarget Method (ElementGroupPrototype)

Gets the model element that you want to use as the target for the merge process.

Namespace:  Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)

Syntax

'Declaration
Function ChooseMergeTarget ( _
    elementGroupPrototype As ElementGroupPrototype _
) As ModelElement
'Usage
Dim instance As IMergeElements 
Dim elementGroupPrototype As ElementGroupPrototype 
Dim returnValue As ModelElement 

returnValue = instance.ChooseMergeTarget(elementGroupPrototype)
ModelElement ChooseMergeTarget(
    ElementGroupPrototype elementGroupPrototype
)
ModelElement^ ChooseMergeTarget(
    ElementGroupPrototype^ elementGroupPrototype
)
function ChooseMergeTarget(
    elementGroupPrototype : ElementGroupPrototype
) : ModelElement

Parameters

Return Value

Type: Microsoft.VisualStudio.Modeling.ModelElement
The ModelElement to use as the target for the merge process.

Remarks

The model that you want to use as the target for the ElementGroupPrototype merge process is called by the merge process when this element is the target of the merge.

This allows you to change the target of this element to something other than itself.

.NET Framework Security

See Also

Reference

IMergeElements Interface

IMergeElements Members

ChooseMergeTarget Overload

Microsoft.VisualStudio.Modeling Namespace