CompartmentRuleHelper::HandleRolePlayerChangedRule Method (ElementLink^, ModelElement^, ModelElement^)
Visual Studio 2015
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.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
public: static void HandleRolePlayerChangedRule( ElementLink^ link, ModelElement^ oldValue, ModelElement^ newValue )
Parameters
- link
-
Type:
Microsoft.VisualStudio.Modeling::ElementLink^
ElementLink that is being changed.
- oldValue
-
Type:
Microsoft.VisualStudio.Modeling::ModelElement^
Old value before change.
- newValue
-
Type:
Microsoft.VisualStudio.Modeling::ModelElement^
New value after chagne.
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.
Show: