ProtoLink 类

包含在任何存储区中需要重新创建 ElementLink 的信息。

继承层次结构

System.Object
  Microsoft.VisualStudio.Modeling.ProtoElementBase
    Microsoft.VisualStudio.Modeling.ProtoLink

命名空间:  Microsoft.VisualStudio.Modeling
程序集:  Microsoft.VisualStudio.Modeling.Sdk.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.12.0.dll 中)

语法

声明
<SerializableAttribute> _
Public NotInheritable Class ProtoLink _
    Inherits ProtoElementBase _
    Implements ISerializable, IDeserializationCallback
[SerializableAttribute]
public sealed class ProtoLink : ProtoElementBase, 
    ISerializable, IDeserializationCallback

ProtoLink 类型公开以下成员。

构造函数

  名称 说明
公共方法 ProtoLink 创建 ProtoLink 类的实例。

页首

属性

  名称 说明
公共属性 DomainClassId 获取此原型元素域类的 ID。 (继承自 ProtoElementBase。)
公共属性 ElementId 获取原型元素的 ID。 (继承自 ProtoElementBase。)

页首

方法

  名称 说明
公共方法 Equals 确定指定的对象是否等于当前对象。 (继承自 Object。)
公共方法 GetHashCode 作为默认哈希函数。 (继承自 Object。)
公共方法 GetObjectData 将对象数据放置到序列化数据传输对象 (重写 ProtoElementBase.GetObjectData(SerializationInfo, StreamingContext)。)
公共方法 GetPropertyValue 获取指定域属性的值。 (继承自 ProtoElementBase。)
公共方法 GetRolePlayerId 获取在该 ProtoLink中起指定域角色的 ProtoElement 的GUID 标识符。
公共方法 GetRolePlayerMonikerId 获取在该 ProtoLink中起指定域角色作用的名称对象的GUID 标识符。
公共方法 GetSourceRolePlayer
公共方法 GetTargetRolePlayer
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
公共方法 ReconstituteObject 在指示的存储中重新创建 ElementLink (重写 ProtoElementBase.ReconstituteObject(Dictionary<Guid, Guid>, Partition)。)
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)

页首

显式接口实现  

  名称 说明
显式接口实现私有方法 IDeserializationCallback.OnDeserialization 图表完全加载时的反序列化对象

页首

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参阅

参考

Microsoft.VisualStudio.Modeling 命名空间