ElementGroupPrototype 类
包含必需的信息重新创建组元素和链接。 用于存储元素在工具中,在剪贴板以及在拖动操作。
继承层次结构
System.Object
Microsoft.VisualStudio.Modeling.ElementGroupPrototype
命名空间: Microsoft.VisualStudio.Modeling
程序集: Microsoft.VisualStudio.Modeling.Sdk.11.0(在 Microsoft.VisualStudio.Modeling.Sdk.11.0.dll 中)
语法
声明
<SerializableAttribute> _
Public NotInheritable Class ElementGroupPrototype _
Implements ISerializable, IDeserializationCallback
[SerializableAttribute]
public sealed class ElementGroupPrototype : ISerializable,
IDeserializationCallback
ElementGroupPrototype 类型公开以下成员。
构造函数
名称 | 说明 | |
---|---|---|
![]() |
ElementGroupPrototype(ElementGroup, IEnumerable<ModelElement>) | 构造函数 |
![]() |
ElementGroupPrototype(Partition, Guid) | 采用的 rool 域类 ID. 构造函数用于确定元素是否可合并在父元素下。 |
![]() |
ElementGroupPrototype(Partition, ICollection<ModelElement>, ElementGroup) | 构造函数 |
页首
属性
名称 | 说明 | |
---|---|---|
![]() |
ProtoElementLinks | 获取在 ElementGroupPrototype 包含的所有 ProtoElementLinks 的集合。 |
![]() |
ProtoElements | 获取在 ElementGroupPrototype 包含的所有 ProtoElements 的集合。 |
![]() |
RootProtoElements | 获取所有根 ProtoElements 的集合。 ElementGroupPrototype 包含。 |
![]() |
SourceContext | 返回此 ElementGroupPrototype 的源 ElementGroupContext 对象 |
![]() |
SourceRootElementIds | 返回只读列表根从源上下文的元素 ID |
![]() |
TargetContext | 返回此 ElementGroupPrototype 的目标 ElementGroupContext 对象 |
![]() |
TargetRootElementIds | 返回只读列表根从目标上下文的元素 ID |
![]() |
TopLevelProtoGroup | 此 ElementGroupPrototype 委托的组的原型 |
![]() |
UserData | 从最外面的元素组的用户定义的数据对象 |
页首
方法
名称 | 说明 | |
---|---|---|
![]() |
CanCreateElementGroup(Partition) | 此原型元素组是否创建上级元素组的克隆中指示的分区? |
![]() |
CanCreateElementGroup(Store) | 此原型元素组是否在该存储区创建上级元素组的克隆? |
![]() |
CanCreateElementGroup(Partition, IElementPartitionMapper) | 此原型元素组是否创建上级元素组的克隆中指示的分区? |
![]() |
CreateElementGroup(Partition) | 创建上级元素组的克隆 |
![]() |
CreateElementGroup(Store) | 创建上级元素组的克隆 |
![]() |
CreateElementGroup(Partition, IElementPartitionMapper) | 创建上级元素组的克隆 |
![]() |
Equals | 确定指定的对象是否等于当前对象。 (继承自 Object。) |
![]() |
GetHashCode | 用作特定类型的哈希函数。 (继承自 Object。) |
![]() |
GetObjectData | 填充必要的数据的序列化信息序列化该对象。 |
![]() |
GetProtoElement | 获取具有指定的 ID. 对应的 ProtoElement |
![]() |
GetProtoLink | 获取具有指定的 ID. 对应的 ProtoLink |
![]() |
GetProtoLinks | 返回的对象 ProtoLink IList 在传递的 DomainRoleId 包含使用的 ProtoElementBase。 |
![]() ![]() |
GetReconstitutedElement | 返回给定的重新编写的 ModelElement 该源 ModelElement 的 GUID。 |
![]() |
GetSourceRootElementId | 获取对应于指定的目标根 ModelElement ID. 源根 ModelElement 的 ID。如果未找到, Guid.Empty 返回。 |
![]() |
GetType | 获取当前实例的 Type。 (继承自 Object。) |
![]() |
IsInRole | ,如果传入的 ProtoElementBase 在本 ElementGroupPrototype,已传递的角色返回 true。 |
![]() |
ResolveProtoLinks | 解决 ProtoLinks 传递 IList 到 ProtoElements 在传递的 DomainRoleId 中的该角色。 |
![]() |
ToString() | 返回表示当前对象的字符串。 (继承自 Object。) |
![]() |
ToString(Partition) | 转储元素和 ElementLinks 的名称本 ElementGroupPrototype 命名 DomainClass 定义中提供的分区。 |
页首
字段
名称 | 说明 | |
---|---|---|
![]() ![]() |
CreatingKey | 上下文信息搜索的键 |
![]() ![]() |
DefaultDataFormatName | 默认数据格式名称 ElementGroupPrototype。 |
![]() ![]() |
ElementGroupIdDictionary | 在 TargetContext 的键 ElementGroupContext 用于元素 ID 字典和根元素 (ID 列表)。 |
![]() ![]() |
RootElementIdList | 在源和目标上下文的键 ElementGroupContext 用于 RootElement ID 列表,并根元素 (ID 列表)。 |
![]() ![]() |
RootElementList | 在源和目标上下文的键 ElementGroupContext 用于 RootElement 列表,并根元素的列表。 |
页首
显式接口实现
名称 | 说明 | |
---|---|---|
![]() ![]() |
IDeserializationCallback.OnDeserialization | 反序列化对象,当关系图完全加载 |
页首
备注
ElementGroupPrototype (EGP) 包含元素和链接模式,如合并操作可用于创建新组元素和链接。 当合并期间, EGP 用于创建 ElementGroup,然后链接到目标架构的元素。
EGPs 以下用途:
传播在拖动操作的信息;
将信息存储在剪贴板;
存储对象的架构在工具箱中。
有关更多信息,请参见如何:程序复制和粘贴行为 - 重定向和 如何:添加拖放处理程序。
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。