MergeContext.Set Method
Adds the MergeContext information to the specified transaction.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'Declaration
Public Shared Sub Set ( _
transaction As Transaction, _
targetElement As ModelElement, _
elementGroup As ElementGroup _
)
public static void Set(
Transaction transaction,
ModelElement targetElement,
ElementGroup elementGroup
)
public:
static void Set(
Transaction^ transaction,
ModelElement^ targetElement,
ElementGroup^ elementGroup
)
static member Set :
transaction:Transaction *
targetElement:ModelElement *
elementGroup:ElementGroup -> unit
public static function Set(
transaction : Transaction,
targetElement : ModelElement,
elementGroup : ElementGroup
)
Parameters
- transaction
Type: Microsoft.VisualStudio.Modeling.Transaction
The transaction where the MergeContext will be saved to.
- targetElement
Type: Microsoft.VisualStudio.Modeling.ModelElement
The target ModelElement of the merge operation.
- elementGroup
Type: Microsoft.VisualStudio.Modeling.ElementGroup
The ElementGroup that was reconstituted into the target store.
.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.