Share via


CompartmentRuleHelper.HandleRolePlayerChangedRule Method

If the role players change, we only care about the "parent" of the relationship. We update both the old and new parents because an item moved from one to the other.

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

Syntax

'Declaration
Public Shared Sub HandleRolePlayerChangedRule ( _
    link As ElementLink, _
    oldValue As ModelElement, _
    newValue As ModelElement _
)
public static void HandleRolePlayerChangedRule(
    ElementLink link,
    ModelElement oldValue,
    ModelElement newValue
)
public:
static void HandleRolePlayerChangedRule(
    ElementLink^ link, 
    ModelElement^ oldValue, 
    ModelElement^ newValue
)
static member HandleRolePlayerChangedRule : 
        link:ElementLink * 
        oldValue:ModelElement * 
        newValue:ModelElement -> unit
public static function HandleRolePlayerChangedRule(
    link : ElementLink, 
    oldValue : ModelElement, 
    newValue : ModelElement
)

Parameters

Remarks

If the role players change, we care only about the "parent" of the relationship. We update both the old and new parents because an item has moved from one to the other.

.NET Framework Security

See Also

Reference

CompartmentRuleHelper Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace