共用方式為


ElementTypeDescriptor.ShouldCreateRolePlayerPropertyDescriptor 方法

傳回值,這個值表示是否應建立指定角色屬性之描述元。

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

語法

'宣告
Protected Overridable Function ShouldCreateRolePlayerPropertyDescriptor ( _
    sourceRolePlayer As ModelElement, _
    sourceRole As DomainRoleInfo _
) As Boolean
protected virtual bool ShouldCreateRolePlayerPropertyDescriptor(
    ModelElement sourceRolePlayer,
    DomainRoleInfo sourceRole
)

參數

傳回值

類型:System.Boolean
表示是否應建立指定角色屬性之描述元的值。

備註

預設實作只會為名稱參考關聯性的 RolePlayerPropertyDescriptors 在關聯性目標端的網域類別即是否有 NameDomainProperty。

.NET Framework 安全性

請參閱

參考

ElementTypeDescriptor 類別

Microsoft.VisualStudio.Modeling.Design 命名空間