共用方式為


ProtoRolePlayer 類別

包含設定 ElementLink 上角色扮演者資料所需的資料。

繼承階層架構

System.Object
  Microsoft.VisualStudio.Modeling.ProtoRolePlayer

命名空間:  Microsoft.VisualStudio.Modeling
組件:  Microsoft.VisualStudio.Modeling.Sdk.12.0 (在 Microsoft.VisualStudio.Modeling.Sdk.12.0.dll 中)

語法

'宣告
<SerializableAttribute> _
Public NotInheritable Class ProtoRolePlayer _
    Implements ISerializable
[SerializableAttribute]
public sealed class ProtoRolePlayer : ISerializable

ProtoRolePlayer 類型會公開下列成員。

建構函式

  名稱 描述
公用方法 ProtoRolePlayer 建構函式

回頁首

屬性

  名稱 描述
公用屬性 DomainRoleId 取得 DomainRoleId Guid。
公用屬性 Ordinals 取得 int 序數。
公用屬性 RolePlayerId 取得 RolePlayerId Guid。
公用屬性 RolePlayerMonikerId 取得 RolePlayerMonikerId Guid。

回頁首

方法

  名稱 描述
公用方法 CreateRoleAssignment 在正在建立的連結中建立 rolePlayer 的 RoleAssignment。如果 idDictionary 不包含重新建構的 rolePlayer 的 ID,而且如果 CanUseExistingRolePlayer 方法傳回 true,請使用從中建立此 ProtoRolePlayer 的原始 rolePlayer。
公用方法 Equals 判斷指定的物件是否等於目前物件。 (繼承自 Object)。
公用方法 GetHashCode 做為預設雜湊函式。 (繼承自 Object)。
公用方法 GetObjectData 呈現要序列化的 ProtoRolePlayer 資料
公用方法 GetType 取得目前執行個體的 Type。 (繼承自 Object)。
公用方法 ToString 傳回表示目前物件的字串。 (繼承自 Object)。

回頁首

執行緒安全

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

請參閱

參考

Microsoft.VisualStudio.Modeling 命名空間