Freigeben über


DesignSurfaceMergeContext.AddRootModelElement Method

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

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)

Syntax

'Declaration
Public Shared Sub AddRootModelElement ( _
    transaction As Transaction, _
    modelElement As ModelElement _
)
public static void AddRootModelElement(
    Transaction transaction,
    ModelElement modelElement
)
public:
static void AddRootModelElement(
    Transaction^ transaction, 
    ModelElement^ modelElement
)
static member AddRootModelElement : 
        transaction:Transaction * 
        modelElement:ModelElement -> unit 
public static function AddRootModelElement(
    transaction : Transaction, 
    modelElement : ModelElement
)

Parameters

.NET Framework Security

See Also

Reference

DesignSurfaceMergeContext Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace