共用方式為


ElementTypeDescriptor.ShouldCreateRolePlayerPropertyDescriptor 方法

傳回值,指出是否應該建立指定的角色屬性的描述項。

命名空間:  Microsoft.VisualStudio.Modeling.Design
組件:  Microsoft.VisualStudio.Modeling.Sdk.11.0 (在 Microsoft.VisualStudio.Modeling.Sdk.11.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 命名空間