ElementTypeDescriptor.ShouldCreateCollectionPropertyDescriptor Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
For the relationship and the instance level role players involved, return whether to create a property descriptor for the collections
protected:
virtual bool ShouldCreateCollectionPropertyDescriptor(Microsoft::VisualStudio::Modeling::ModelElement ^ sourceRolePlayer, Microsoft::VisualStudio::Modeling::DomainRoleInfo ^ sourceRole);
protected virtual bool ShouldCreateCollectionPropertyDescriptor (Microsoft.VisualStudio.Modeling.ModelElement sourceRolePlayer, Microsoft.VisualStudio.Modeling.DomainRoleInfo sourceRole);
abstract member ShouldCreateCollectionPropertyDescriptor : Microsoft.VisualStudio.Modeling.ModelElement * Microsoft.VisualStudio.Modeling.DomainRoleInfo -> bool
override this.ShouldCreateCollectionPropertyDescriptor : Microsoft.VisualStudio.Modeling.ModelElement * Microsoft.VisualStudio.Modeling.DomainRoleInfo -> bool
Protected Overridable Function ShouldCreateCollectionPropertyDescriptor (sourceRolePlayer As ModelElement, sourceRole As DomainRoleInfo) As Boolean
Parameters
- sourceRolePlayer
- ModelElement
Source role player. This will be null for a type-level TypeDescriptor.
- sourceRole
- DomainRoleInfo
Source role involved
Returns
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.