ElementTypeDescriptor::ShouldCreateRolePlayerPropertyDescriptor Method (ModelElement^, DomainRoleInfo^)
Visual Studio 2015
Returns a value that indicates whether a descriptor should be created for the specified role property.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)
protected: virtual bool ShouldCreateRolePlayerPropertyDescriptor( ModelElement^ sourceRolePlayer, DomainRoleInfo^ sourceRole )
Parameters
- sourceRolePlayer
-
Type:
Microsoft.VisualStudio.Modeling::ModelElement^
The model element that has the source role.
- sourceRole
-
Type:
Microsoft.VisualStudio.Modeling::DomainRoleInfo^
The domain role information for the source role player.
Return Value
Type: System::BooleanA value that indicates whether a descriptor should be created for the specified role property.
Default implementation only creates RolePlayerPropertyDescriptors for named reference relationships i.e. whether domain class at the target end of the relationship has a NameDomainProperty.
Show: