DesignSurfaceMergeContext.AddRootModelElement(Transaction, ModelElement) Метод

Определение

Добавляет modelElement в коллекцию RootMel DesignSurfaceMergeContext транзакции.

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)

Параметры

transaction
Transaction

Транзакция, содержащая сохраненный объект DesignSurfaceMergeContext. Обычно это транзакция верхнего уровня.

modelElement
ModelElement

Элемент модели для добавления в коллекцию RootMel.

Применяется к