MergeContext.AddRootModelElement(Transaction, ModelElement) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.