对于角色扮演者涉及的关系和实例,返回是否为集合创建属性描述符。
命名空间: 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
)
参数
- sourceRolePlayer
类型:Microsoft.VisualStudio.Modeling.ModelElement
源角色扮演者。这对于类型级别的 TypeDescriptor 将为 null。
- sourceRole
类型:Microsoft.VisualStudio.Modeling.DomainRoleInfo
涉及的源角色
返回值
类型:System.Boolean
指示是否为集合创建属性说明符的标志
备注
默认实现只创建源元素的 PropertyDescriptors。 ExtensionExtendsElement.ModelElement 集合显式排除。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。