ModelElement.OnCopy(ModelElement) 方法

定義

在建立元素的複本時呼叫。Called when a copy of the element has been created. 方法會在重複的元素上呼叫。The method is called on the duplicate element.

protected public:
 virtual void OnCopy(Microsoft::VisualStudio::Modeling::ModelElement ^ sourceElement);
protected internal virtual void OnCopy (Microsoft.VisualStudio.Modeling.ModelElement sourceElement);
abstract member OnCopy : Microsoft.VisualStudio.Modeling.ModelElement -> unit
override this.OnCopy : Microsoft.VisualStudio.Modeling.ModelElement -> unit
Protected Friend Overridable Sub OnCopy (sourceElement As ModelElement)

參數

sourceElement
ModelElement

複製的來源元素。Element from which was duplicated.

適用於