次の方法で共有


ElementTypeDescriptor.ShouldCreateRolePlayerPropertyDescriptor Method

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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)

Syntax

'宣言
Protected Overridable Function ShouldCreateRolePlayerPropertyDescriptor ( _
    sourceRolePlayer As ModelElement, _
    sourceRole As DomainRoleInfo _
) As Boolean
protected virtual bool ShouldCreateRolePlayerPropertyDescriptor(
    ModelElement sourceRolePlayer,
    DomainRoleInfo sourceRole
)
protected:
virtual bool ShouldCreateRolePlayerPropertyDescriptor(
    ModelElement^ sourceRolePlayer, 
    DomainRoleInfo^ sourceRole
)
abstract ShouldCreateRolePlayerPropertyDescriptor : 
        sourceRolePlayer:ModelElement * 
        sourceRole:DomainRoleInfo -> bool 
override ShouldCreateRolePlayerPropertyDescriptor : 
        sourceRolePlayer:ModelElement * 
        sourceRole:DomainRoleInfo -> bool 
protected function ShouldCreateRolePlayerPropertyDescriptor(
    sourceRolePlayer : ModelElement, 
    sourceRole : DomainRoleInfo
) : boolean

Parameters

Return Value

Type: System.Boolean
A value that indicates whether a descriptor should be created for the specified role property.

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.

.NET Framework Security

See Also

Reference

ElementTypeDescriptor Class

Microsoft.VisualStudio.Modeling.Design Namespace