Partager via


CompartmentRuleHelper Class

Static class with shared code for handling Compartment list item add, remove, and change rules.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Modeling.Diagrams.CompartmentRuleHelper

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 NotInheritable Class CompartmentRuleHelper
public static class CompartmentRuleHelper
public ref class CompartmentRuleHelper abstract sealed
[<AbstractClass>]
[<Sealed>]
type CompartmentRuleHelper =  class end
public final class CompartmentRuleHelper

The CompartmentRuleHelper type exposes the following members.

Methods

  Name Description
Public methodStatic member HandleCompartmentUpdate Update the Compartment represented by the ElementLink, so that it will shrink/grow as needed.
Public methodStatic member HandleRolePlayerChangedRule 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.

Top

Remarks

Static class that has shared code to handle Compartment list item add, remove, and change rules.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.Modeling.Diagrams Namespace