ElementTypeDescriptor::ShouldCreateCollectionPropertyDescriptor Method (ModelElement^, DomainRoleInfo^)
Visual Studio 2015
For the relationship and the instance level role players involved, return whether to create a property descriptor for the collections
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::BooleanA 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.
Show: