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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'Déclaration
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.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.
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.