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
link
Type: Microsoft.VisualStudio.Modeling.ElementLinkElementLink that is being changed.
oldValue
Type: Microsoft.VisualStudio.Modeling.ModelElementOld value before change.
newValue
Type: Microsoft.VisualStudio.Modeling.ModelElementNew value after chagne.
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
- 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.