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.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.11.0.dll)
Syntax
'Declaration
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
sourceRolePlayer
Type: Microsoft.VisualStudio.Modeling.ModelElementThe model element that has the source role.
sourceRole
Type: Microsoft.VisualStudio.Modeling.DomainRoleInfoThe domain role information for the source role player.
Return Value
Type: 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.