ElementOperations.ChooseMergeTarget Method (ModelElement, ElementGroupPrototype)
Gets the target element for the merge, given the proposed targetElement. This gives the ElementOperations the chance to change the intended target for the merge. By default, this method will give the target element the chance to change the intended target.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'Declaração
Public Overridable Function ChooseMergeTarget ( _
proposedTargetElement As ModelElement, _
elementGroupPrototype As ElementGroupPrototype _
) As ModelElement
public virtual ModelElement ChooseMergeTarget(
ModelElement proposedTargetElement,
ElementGroupPrototype elementGroupPrototype
)
public:
virtual ModelElement^ ChooseMergeTarget(
ModelElement^ proposedTargetElement,
ElementGroupPrototype^ elementGroupPrototype
)
abstract ChooseMergeTarget :
proposedTargetElement:ModelElement *
elementGroupPrototype:ElementGroupPrototype -> ModelElement
override ChooseMergeTarget :
proposedTargetElement:ModelElement *
elementGroupPrototype:ElementGroupPrototype -> ModelElement
public function ChooseMergeTarget(
proposedTargetElement : ModelElement,
elementGroupPrototype : ElementGroupPrototype
) : ModelElement
Parameters
- proposedTargetElement
Type: Microsoft.VisualStudio.Modeling.ModelElement
The proposed target element for the merge.
- elementGroupPrototype
Type: Microsoft.VisualStudio.Modeling.ElementGroupPrototype
The ElementGroupPrototype that will be reconstituted in the target's store during the merge.
Return Value
Type: Microsoft.VisualStudio.Modeling.ModelElement
The target element for the merge.
.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.