Gets the model element that will be used as the target for the ElementGroupPrototype merge process.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)
Syntax
'宣言
Protected Overridable Function ChooseMergeTarget ( _
elementGroupPrototype As ElementGroupPrototype _
) As ModelElement
'使用
Dim elementGroupPrototype As ElementGroupPrototype
Dim returnValue As ModelElement
returnValue = Me.ChooseMergeTarget(elementGroupPrototype)
protected virtual ModelElement ChooseMergeTarget(
ElementGroupPrototype elementGroupPrototype
)
protected:
virtual ModelElement^ ChooseMergeTarget(
ElementGroupPrototype^ elementGroupPrototype
)
protected function ChooseMergeTarget(
elementGroupPrototype : ElementGroupPrototype
) : ModelElement
Parameters
elementGroupPrototype
Type: Microsoft.VisualStudio.Modeling.ElementGroupPrototypeThe ElementGroupPrototype that will be reconstituted and merged with the target element.
Return Value
Type: Microsoft.VisualStudio.Modeling.ModelElement
The ModelElement to use as the target for the merge process.
Remarks
This is called by the merge process when this element is the target of the merge. The merge proces enables this element to change the target to something other than itself.
Permissions
- 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.