ElementTypeDescriptor.ShouldCreateCollectionPropertyDescriptor Method

For the relationship and the instance level role players involved, return whether to create a property descriptor for the collections

Namespace:  Microsoft.VisualStudio.Modeling.Design
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)

Syntax

'Declaração
Protected Overridable Function ShouldCreateCollectionPropertyDescriptor ( _
    sourceRolePlayer As ModelElement, _
    sourceRole As DomainRoleInfo _
) As Boolean
protected virtual bool ShouldCreateCollectionPropertyDescriptor(
    ModelElement sourceRolePlayer,
    DomainRoleInfo sourceRole
)
protected:
virtual bool ShouldCreateCollectionPropertyDescriptor(
    ModelElement^ sourceRolePlayer, 
    DomainRoleInfo^ sourceRole
)
abstract ShouldCreateCollectionPropertyDescriptor : 
        sourceRolePlayer:ModelElement * 
        sourceRole:DomainRoleInfo -> bool 
override ShouldCreateCollectionPropertyDescriptor : 
        sourceRolePlayer:ModelElement * 
        sourceRole:DomainRoleInfo -> bool 
protected function ShouldCreateCollectionPropertyDescriptor(
    sourceRolePlayer : ModelElement, 
    sourceRole : DomainRoleInfo
) : boolean

Parameters

Return Value

Type: System.Boolean
A flag indicating whether to create a property descriptor for a collection

Remarks

Default implementation only creates PropertyDescriptors for source element. The ExtensionExtendsElement.ModelElement collection is explicitly excluded.

.NET Framework Security

See Also

Reference

ElementTypeDescriptor Class

Microsoft.VisualStudio.Modeling.Design Namespace