共用方式為


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 中扮演指定網域角色的 moniker 的 Guid 識別項。
公用方法 GetSourceRolePlayer
公用方法 GetTargetRolePlayer
公用方法 GetType 取得目前執行個體的 Type。 (繼承自 Object)。
公用方法 ReconstituteObject 在指定的存放區中重新建立 ElementLink (覆寫 ProtoElementBase.ReconstituteObject(Dictionary<Guid, Guid>, Partition)。)
公用方法 ToString 傳回表示目前物件的字串。 (繼承自 Object)。

回頁首

明確介面實作

  名稱 描述
明確介面實作私用方法 IDeserializationCallback.OnDeserialization 完全載入圖案時,將物件還原序列化

回頁首

執行緒安全

這個類型的任何 Public static (在 Visual Basic 中為 Shared) 成員都是安全執行緒。不保證任何執行個體成員是安全執行緒。

請參閱

參考

Microsoft.VisualStudio.Modeling 命名空間