CompartmentRuleHelper.HandleRolePlayerChangedRule Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
public:
static void HandleRolePlayerChangedRule(Microsoft::VisualStudio::Modeling::ElementLink ^ link, Microsoft::VisualStudio::Modeling::ModelElement ^ oldValue, Microsoft::VisualStudio::Modeling::ModelElement ^ newValue);
public static void HandleRolePlayerChangedRule (Microsoft.VisualStudio.Modeling.ElementLink link, Microsoft.VisualStudio.Modeling.ModelElement oldValue, Microsoft.VisualStudio.Modeling.ModelElement newValue);
static member HandleRolePlayerChangedRule : Microsoft.VisualStudio.Modeling.ElementLink * Microsoft.VisualStudio.Modeling.ModelElement * Microsoft.VisualStudio.Modeling.ModelElement -> unit
Public Shared Sub HandleRolePlayerChangedRule (link As ElementLink, oldValue As ModelElement, newValue As ModelElement)
Parameters
- link
- ElementLink
ElementLink that is being changed.
- oldValue
- ModelElement
Old value before change.
- newValue
- ModelElement
New value after chagne.