MergeContext.AddRootModelElement(Transaction, ModelElement) Method

Definition

Adds the modelElement to the transaction's MergeContext's RootMel collection.

public:
 static void AddRootModelElement(Microsoft::VisualStudio::Modeling::Transaction ^ transaction, Microsoft::VisualStudio::Modeling::ModelElement ^ modelElement);
public static void AddRootModelElement (Microsoft.VisualStudio.Modeling.Transaction transaction, Microsoft.VisualStudio.Modeling.ModelElement modelElement);
static member AddRootModelElement : Microsoft.VisualStudio.Modeling.Transaction * Microsoft.VisualStudio.Modeling.ModelElement -> unit
Public Shared Sub AddRootModelElement (transaction As Transaction, modelElement As ModelElement)

Parameters

transaction
Transaction

The transaction containing the saved MergeContext. This is typically the top-level transaction.

modelElement
ModelElement

The model element to add to the RootMel collection.

Applies to