ElementOperations.MergeElementGroupPrototype Method
Merges the source ElementGroupPrototype with the specified target ModelElement.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'Déclaration
Public Overridable Sub MergeElementGroupPrototype ( _
targetElement As ModelElement, _
elementGroupPrototype As ElementGroupPrototype _
)
public virtual void MergeElementGroupPrototype(
ModelElement targetElement,
ElementGroupPrototype elementGroupPrototype
)
public:
virtual void MergeElementGroupPrototype(
ModelElement^ targetElement,
ElementGroupPrototype^ elementGroupPrototype
)
abstract MergeElementGroupPrototype :
targetElement:ModelElement *
elementGroupPrototype:ElementGroupPrototype -> unit
override MergeElementGroupPrototype :
targetElement:ModelElement *
elementGroupPrototype:ElementGroupPrototype -> unit
public function MergeElementGroupPrototype(
targetElement : ModelElement,
elementGroupPrototype : ElementGroupPrototype
)
Parameters
- targetElement
Type: Microsoft.VisualStudio.Modeling.ModelElement
The target element which will serve as the parent of the reconstituted elements.
- elementGroupPrototype
Type: Microsoft.VisualStudio.Modeling.ElementGroupPrototype
The source ElementGroupPrototype.
Remarks
This method performs the following: (1) reconstitutes the elements from the ElementGroupPrototype, (2) calls OnElementsReconstituted to provide any ElementOperations-derived class the opportunity to plug in custom processing, (3) calls the target element's MergeRelate virtual method for each reconstituted root element to provide the target with the opportunity to connect a root element to itself, (4) calls the virtual method MergeConfigure on the reconstituted root element immediately after calling MergeRelate to provide the root element with an opportunity to configure itself, and (5) calls OnMerged to provide any ElementOperations-derived class the opportunity to plug in custom processing.
.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.