Share via


SourceRolePlayerMapFunction Delegate

Represents the method that a domain class can use to adjust the role player of a new link.

Namespace:  Microsoft.VisualStudio.Modeling.Design
Assembly:  Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)

Syntax

'Declaration
Public Delegate Function SourceRolePlayerMapFunction ( _
    input As ModelElement _
) As ModelElement
'Usage
Dim instance As New SourceRolePlayerMapFunction(AddressOf HandlerMethod)
public delegate ModelElement SourceRolePlayerMapFunction(
    ModelElement input
)
public delegate ModelElement^ SourceRolePlayerMapFunction(
    ModelElement^ input
)
JScript does not support delegates.

Parameters

Return Value

Type: Microsoft.VisualStudio.Modeling.ModelElement
The model element to use as the new role player in the new link.

Remarks

For a domain class that plays a role in a domain relationship, the RolePlayerPropertyDescriptor.MapSourceRolePlayer property enables the domain class to insert one model element in place of another when a new link is created.

For example, this delegate is used by the DSL Tools to link the underlying model elements when you link two diagram elements. For more information about how to map diagram elements to model elements, see Mapping Shapes and Connectors.

See Also

Reference

Microsoft.VisualStudio.Modeling.Design Namespace

RolePlayerPropertyDescriptor

Change History

Date

History

Reason

July 2008

Added topic.

Content bug fix.