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


Type: Microsoft.VisualStudio.Modeling.ModelElement

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

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