提供为合并最初设置为合并处理器 ElementGroupPrototype 的对象时将重建到目标存储。
继承层次结构
System.Object
Microsoft.VisualStudio.Modeling.MergeContext
命名空间: Microsoft.VisualStudio.Modeling
程序集: Microsoft.VisualStudio.Modeling.Sdk.11.0(在 Microsoft.VisualStudio.Modeling.Sdk.11.0.dll 中)
语法
声明
Public NotInheritable Class MergeContext
public sealed class MergeContext
MergeContext 类型公开以下成员。
方法
名称 | 说明 | |
---|---|---|
![]() ![]() |
AddRootModelElement | 添加 modelElement 为事务的 MergeContext 的 RootMel 集合。 |
![]() |
Equals | 确定指定的对象是否等于当前对象。 (继承自 Object。) |
![]() ![]() |
GetElementGroup | 返回中重建到目标存储的 ElementGroup。 |
![]() |
GetHashCode | 用作特定类型的哈希函数。 (继承自 Object。) |
![]() ![]() |
GetRootModelElements | 返回 ModelElements 的集合 (非 PresentationElements) 来为中重建的 ElementGroup 的根元素。 |
![]() ![]() |
GetTargetElement | 返回合并操作的目标 ModelElement。 |
![]() |
GetType | 获取当前实例的 Type。 (继承自 Object。) |
![]() ![]() |
HasContext | 返回 true,则该事务包含 MergeContext 信息; 否则为 false。 |
![]() ![]() |
Set | 添加 MergeContext 信息到指定的事务。 |
![]() |
ToString | 返回表示当前对象的字符串。 (继承自 Object。) |
页首
字段
名称 | 说明 | |
---|---|---|
![]() ![]() |
PreMergeKey | 如果此键存在 ElementGroup 的上下文中,合并处理在合并演练将对每个根元素的 PreMergeSelf() 在 ElementGroup。 |
页首
备注
所提供的合并信息 (放置或粘贴信息) 为合并安装过程 ElementGroupPrototype 对象时将重建到目标存储。
合并信息随后使用在组合中处理和解决阶段。
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。