MergeContext Class
Provides merge information initially set by the merge process when the objects of a ElementGroupPrototype are reconstituted into the target store.
Inheritance Hierarchy
Object
Microsoft.VisualStudio.Modeling.MergeContext
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.11.0.dll)
Syntax
'Declaration
Public NotInheritable Class MergeContext
public sealed class MergeContext
public ref class MergeContext sealed
[<Sealed>]
type MergeContext = class end
public final class MergeContext
The MergeContext type exposes the following members.
Methods
Name | Description | |
---|---|---|
AddRootModelElement | Adds the modelElement to the transaction's MergeContext's RootMel collection. | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
GetElementGroup | Returns the ElementGroup that was reconstituted into the target store. | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetRootModelElements | Returns the collection of ModelElements (non-PresentationElements) that serve as the root elements in the reconstituted ElementGroup. | |
GetTargetElement | Returns the target ModelElement of the merge operation. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
HasContext | Returns true if the transaction contains MergeContext info, otherwise false. | |
Set | Adds the MergeContext information to the specified transaction. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Fields
Name | Description | |
---|---|---|
PreMergeKey | When this key is present in an ElementGroup's context, the merge process will call PreMergeSelf() on every root element in the ElementGroup at the beginning of merge. |
Top
Remarks
The merge information provided (drop or paste information) is set by the merge process when the ElementGroupPrototype objects are reconstituted into the target store.
The merge information is subsequently used throughout the merge process and the fix-up phase.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.