ElementTypeDescriptor.ShouldCreateRolePlayerPropertyDescriptor 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 opposite role player
protected:
virtual bool ShouldCreateRolePlayerPropertyDescriptor(Microsoft::VisualStudio::Modeling::ModelElement ^ sourceRolePlayer, Microsoft::VisualStudio::Modeling::DomainRoleInfo ^ sourceRole);
protected virtual bool ShouldCreateRolePlayerPropertyDescriptor (Microsoft.VisualStudio.Modeling.ModelElement sourceRolePlayer, Microsoft.VisualStudio.Modeling.DomainRoleInfo sourceRole);
abstract member ShouldCreateRolePlayerPropertyDescriptor : Microsoft.VisualStudio.Modeling.ModelElement * Microsoft.VisualStudio.Modeling.DomainRoleInfo -> bool
override this.ShouldCreateRolePlayerPropertyDescriptor : Microsoft.VisualStudio.Modeling.ModelElement * Microsoft.VisualStudio.Modeling.DomainRoleInfo -> bool
Protected Overridable Function ShouldCreateRolePlayerPropertyDescriptor (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 the opposite role player
Remarks
Default implementation only creates RolePlayerPropertyDescriptors for named reference relationships i.e. whether domain class at the target end of the relationship has a NameDomainProperty.