Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Adds the modelElement to the transaction's MergeContext's RootMel collection.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.11.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
transaction
Type: Microsoft.VisualStudio.Modeling.TransactionThe transaction containing the saved MergeContext. This is typically the top-level transaction.
modelElement
Type: Microsoft.VisualStudio.Modeling.ModelElementThe model element to add to the RootMel collection.
.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.