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