ElementTypeDescriptor.CreateRolePlayerPropertyDescriptor Method
Creates a descriptor for a role property of a model element.
Namespace: Microsoft.VisualStudio.Modeling.Design
Assembly: Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)
Syntax
'Declaration
Protected Overridable Function CreateRolePlayerPropertyDescriptor ( _
sourceRolePlayer As ModelElement, _
targetRoleInfo As DomainRoleInfo, _
sourceDomainRoleInfoAttributes As Attribute() _
) As RolePlayerPropertyDescriptor
protected virtual RolePlayerPropertyDescriptor CreateRolePlayerPropertyDescriptor(
ModelElement sourceRolePlayer,
DomainRoleInfo targetRoleInfo,
Attribute[] sourceDomainRoleInfoAttributes
)
protected:
virtual RolePlayerPropertyDescriptor^ CreateRolePlayerPropertyDescriptor(
ModelElement^ sourceRolePlayer,
DomainRoleInfo^ targetRoleInfo,
array<Attribute^>^ sourceDomainRoleInfoAttributes
)
abstract CreateRolePlayerPropertyDescriptor :
sourceRolePlayer:ModelElement *
targetRoleInfo:DomainRoleInfo *
sourceDomainRoleInfoAttributes:Attribute[] -> RolePlayerPropertyDescriptor
override CreateRolePlayerPropertyDescriptor :
sourceRolePlayer:ModelElement *
targetRoleInfo:DomainRoleInfo *
sourceDomainRoleInfoAttributes:Attribute[] -> RolePlayerPropertyDescriptor
protected function CreateRolePlayerPropertyDescriptor(
sourceRolePlayer : ModelElement,
targetRoleInfo : DomainRoleInfo,
sourceDomainRoleInfoAttributes : Attribute[]
) : RolePlayerPropertyDescriptor
Parameters
sourceRolePlayer
Type: Microsoft.VisualStudio.Modeling.ModelElementThe model element that plays the source role.
targetRoleInfo
Type: Microsoft.VisualStudio.Modeling.DomainRoleInfoThe domain role information for the target role player.
sourceDomainRoleInfoAttributes
Type: array<System.Attribute[]An array that contains the attributes to apply to the source role property.
Return Value
Type: Microsoft.VisualStudio.Modeling.Design.RolePlayerPropertyDescriptor
The descriptor for the role property of the model element.
.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.