ElementTypeDescriptor.ShouldCreateCollectionPropertyDescriptor 方法
關聯性和相關的執行個體層級的角色扮演者,傳回是否要建立之集合的屬性描述項
命名空間: Microsoft.VisualStudio.Modeling.Design
組件: Microsoft.VisualStudio.Modeling.Sdk.11.0 (在 Microsoft.VisualStudio.Modeling.Sdk.11.0.dll 中)
語法
'宣告
Protected Overridable Function ShouldCreateCollectionPropertyDescriptor ( _
sourceRolePlayer As ModelElement, _
sourceRole As DomainRoleInfo _
) As Boolean
protected virtual bool ShouldCreateCollectionPropertyDescriptor(
ModelElement sourceRolePlayer,
DomainRoleInfo sourceRole
)
參數
- sourceRolePlayer
型別:Microsoft.VisualStudio.Modeling.ModelElement
來源角色扮演者。這將為 null 的型別層級的 TypeDescriptor 項目。
- sourceRole
型別:Microsoft.VisualStudio.Modeling.DomainRoleInfo
來源所涉及的角色
傳回值
型別:System.Boolean
旗標,指出是否要建立集合的屬性描述項
備註
預設實作會為來源項目,只建立 PropertyDescriptors。ExtensionExtendsElement.ModelElement 集合已明確排除。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。