Microsoft.VisualStudio.Mode ...


Domain-Specific Language Tools Reference
ChangeRule Class

Updated: November 2007

Represents a rule that is called when a change happens to an element in the model.

Namespace:  Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)

Syntax

Visual Basic (Declaration)
Public MustInherit Class ChangeRule _
    Inherits Rule
Visual Basic (Usage)
Dim instance As ChangeRule
C#
public abstract class ChangeRule : Rule
Visual C++
public ref class ChangeRule abstract : public Rule
JScript
public abstract class ChangeRule extends Rule
Remarks

A RuleOnAttribute attribute placed on the class indicates what type of object the rule works on and when the rule should fire, either inline, local transaction commit, or top level transaction commit.

The rule is called when a change occurs to the object of the specified type in the model, whether the change is made in the UI or programmatically.

Inheritance Hierarchy

System..::.Object
  Microsoft.VisualStudio.Modeling..::.Rule
    Microsoft.VisualStudio.Modeling..::.ChangeRule
      Microsoft.VisualStudio.Modeling.Diagrams..::.LineLabelAutoPlacementChangeRule
      Microsoft.VisualStudio.Modeling.Diagrams..::.LinkShapeChangedRule
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

Other Resources

Tags :


Page view tracker