RolePlayerPropertyDescriptor 類別
提供角色屬性的其他執行階段型別資訊。
繼承階層架構
System.Object
System.ComponentModel.MemberDescriptor
System.ComponentModel.PropertyDescriptor
Microsoft.VisualStudio.Modeling.Design.RolePlayerPropertyDescriptor
命名空間: Microsoft.VisualStudio.Modeling.Design
組件: Microsoft.VisualStudio.Modeling.Sdk.12.0 (在 Microsoft.VisualStudio.Modeling.Sdk.12.0.dll 中)
語法
'宣告
<HostProtectionAttribute(SecurityAction.LinkDemand, SharedState := True)> _
Public Class RolePlayerPropertyDescriptor _
Inherits PropertyDescriptor
[HostProtectionAttribute(SecurityAction.LinkDemand, SharedState = true)]
public class RolePlayerPropertyDescriptor : PropertyDescriptor
RolePlayerPropertyDescriptor 類型會公開下列成員。
建構函式
名稱 | 描述 | |
---|---|---|
![]() |
RolePlayerPropertyDescriptor(ModelElement, DomainRoleInfo, array<Attribute[]) | 初始化 RolePlayerPropertyDescriptor 類別的新執行個體。 |
![]() |
RolePlayerPropertyDescriptor(Store, DomainRoleInfo, array<Attribute[]) | 建構函式 |
回頁首
屬性
回頁首
方法
回頁首
備註
這個類別提供角色動態自訂屬性資訊屬性。
模型項目的 ElementTypeDescriptor 可能會傳回的屬性描述元集合該模型項目屬性的。 這個集合可以包含屬性描述項確定這個項目在其中是角色扮演者的連結。 這些屬性描述元是這個類別的執行個體。 如需詳細資訊,請參閱 Defining Domain Relationships 和 ElementTypeDescriptor 方法的下列分類: CreateRolePlayerPropertyDescriptor、 GetDisplayProperties和 ShouldCreateRolePlayerPropertyDescriptor。
若要建立自訂的角色屬性描述項,請從這個類別繼承並覆寫一或多個成員。
![]() |
---|
套用至這個類型或成員的 HostProtectionAttribute 屬性 (Attribute) 具有下列 Resources 屬性 (Property) 值:SharedState。HostProtectionAttribute 不會影響桌面應用程式 (這些應用程式的啟動方式一般都是按兩下圖示、輸入命令或在瀏覽器輸入 URL)。如需詳細資訊,請參閱 HostProtectionAttribute 類別或 SQL Server 程式設計和主機保護屬性。 |
執行緒安全
這個類型的任何 Public static (在 Visual Basic 中為 Shared) 成員都是安全執行緒。不保證任何執行個體成員是安全執行緒。
請參閱
參考
Microsoft.VisualStudio.Modeling.Design 命名空間