ElementTypeDescriptor.ShouldCreateCollectionPropertyDescriptor 方法

对于角色扮演者涉及的关系和实例,返回是否为集合创建属性描述符。

命名空间:  Microsoft.VisualStudio.Modeling.Design
程序集:  Microsoft.VisualStudio.Modeling.Sdk.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.12.0.dll 中)

语法

声明
Protected Overridable Function ShouldCreateCollectionPropertyDescriptor ( _
    sourceRolePlayer As ModelElement, _
    sourceRole As DomainRoleInfo _
) As Boolean
protected virtual bool ShouldCreateCollectionPropertyDescriptor(
    ModelElement sourceRolePlayer,
    DomainRoleInfo sourceRole
)

参数

返回值

类型:System.Boolean
指示是否为集合创建属性说明符的标志

备注

默认实现只创建源元素的 PropertyDescriptors。 ExtensionExtendsElement.ModelElement 集合显式排除。

.NET Framework 安全性

请参阅

参考

ElementTypeDescriptor 类

Microsoft.VisualStudio.Modeling.Design 命名空间