ModelElement.ChooseMergeTarget 方法

定義

多載

ChooseMergeTarget(ElementGroup)

取得要當做 ElementGroup merge 進程目標使用的 ModelElement。Gets the ModelElement to be used as the target for the ElementGroup merge process.
當這個元素是合併的目標時,merge 進程會呼叫此專案。This is called by the merge process when this element is the target of the merge.
這可提供此元素,讓您有機會將目標變更為本身以外的其他專案。This provides this element with the opportunity to change the target to something other than itself.

ChooseMergeTarget(ElementGroupPrototype)

取得要當做 ElementGroupPrototype merge 進程目標使用的 ModelElement。Gets the ModelElement to be used as the target for the ElementGroupPrototype merge process.
當這個元素是合併的目標時,merge 進程會呼叫此專案。This is called by the merge process when this element is the target of the merge.
這可提供此元素,讓您有機會將目標變更為本身以外的其他專案。This provides this element with the opportunity to change the target to something other than itself.

ChooseMergeTarget(ElementGroup)

取得要當做 ElementGroup merge 進程目標使用的 ModelElement。Gets the ModelElement to be used as the target for the ElementGroup merge process.
當這個元素是合併的目標時,merge 進程會呼叫此專案。This is called by the merge process when this element is the target of the merge.
這可提供此元素,讓您有機會將目標變更為本身以外的其他專案。This provides this element with the opportunity to change the target to something other than itself.

protected:
 virtual Microsoft::VisualStudio::Modeling::ModelElement ^ ChooseMergeTarget(Microsoft::VisualStudio::Modeling::ElementGroup ^ elementGroup);
protected virtual Microsoft.VisualStudio.Modeling.ModelElement ChooseMergeTarget (Microsoft.VisualStudio.Modeling.ElementGroup elementGroup);
abstract member ChooseMergeTarget : Microsoft.VisualStudio.Modeling.ElementGroup -> Microsoft.VisualStudio.Modeling.ModelElement
override this.ChooseMergeTarget : Microsoft.VisualStudio.Modeling.ElementGroup -> Microsoft.VisualStudio.Modeling.ModelElement
Protected Overridable Function ChooseMergeTarget (elementGroup As ElementGroup) As ModelElement

參數

elementGroup
ElementGroup

將與目標元素合併的 ElementGroup。The ElementGroup that will be merged with the target element.

傳回

ModelElement

要做為合併進程目標使用的 ModelElement。The ModelElement to use as the target for the merge process.

適用於

ChooseMergeTarget(ElementGroupPrototype)

取得要當做 ElementGroupPrototype merge 進程目標使用的 ModelElement。Gets the ModelElement to be used as the target for the ElementGroupPrototype merge process.
當這個元素是合併的目標時,merge 進程會呼叫此專案。This is called by the merge process when this element is the target of the merge.
這可提供此元素,讓您有機會將目標變更為本身以外的其他專案。This provides this element with the opportunity to change the target to something other than itself.

protected:
 virtual Microsoft::VisualStudio::Modeling::ModelElement ^ ChooseMergeTarget(Microsoft::VisualStudio::Modeling::ElementGroupPrototype ^ elementGroupPrototype);
protected virtual Microsoft.VisualStudio.Modeling.ModelElement ChooseMergeTarget (Microsoft.VisualStudio.Modeling.ElementGroupPrototype elementGroupPrototype);
abstract member ChooseMergeTarget : Microsoft.VisualStudio.Modeling.ElementGroupPrototype -> Microsoft.VisualStudio.Modeling.ModelElement
override this.ChooseMergeTarget : Microsoft.VisualStudio.Modeling.ElementGroupPrototype -> Microsoft.VisualStudio.Modeling.ModelElement
Protected Overridable Function ChooseMergeTarget (elementGroupPrototype As ElementGroupPrototype) As ModelElement

參數

elementGroupPrototype
ElementGroupPrototype

將會重建並與目標元素合併的 ElementGroupPrototype。The ElementGroupPrototype that will be reconstituted and merged with the target element.

傳回

ModelElement

要做為合併進程目標使用的 ModelElement。The ModelElement to use as the target for the merge process.

適用於