ElementTypeDescriptor::ShouldCreateRolePlayerPropertyDescriptor Method (ModelElement^, DomainRoleInfo^)

 

Returns a value that indicates whether a descriptor should be created for the specified role property.

Namespace:   Microsoft.VisualStudio.Modeling.Design
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::Boolean

A 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.

Return to top
Show: