ElementTypeDescriptor.ShouldCreateCollectionPropertyDescriptor Method (ModelElement, DomainRoleInfo)

 

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.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)

protected virtual bool ShouldCreateCollectionPropertyDescriptor(
	ModelElement sourceRolePlayer,
	DomainRoleInfo sourceRole
)

Parameters

sourceRolePlayer
Type: Microsoft.VisualStudio.Modeling.ModelElement

Source role player. This will be null for a type-level TypeDescriptor.

sourceRole
Type: Microsoft.VisualStudio.Modeling.DomainRoleInfo

Source role involved

Return Value

Type: System.Boolean

A flag indicating whether to create a property descriptor for a collection

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

Return to top
Show: