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
)
參數
- sourceRolePlayer
類型:Microsoft.VisualStudio.Modeling.ModelElement
具有來源角色的模型項目。
- sourceRole
類型:Microsoft.VisualStudio.Modeling.DomainRoleInfo
來源角色扮演者的網域角色資訊。
傳回值
類型:System.Boolean
表示是否應建立指定角色屬性之描述元的值。
備註
預設實作只會為名稱參考關聯性的 RolePlayerPropertyDescriptors 在關聯性目標端的網域類別即是否有 NameDomainProperty。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。