DeletingRule Class
Domain-Specific Language Tools Reference
DeletingRule Class

Updated: November 2007

Represents a rule that is called when an element is being deleted in the model.

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

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

When an object of a specific type is deleted from the model and you want to do something programmatically, you define a class derived from DeletingRule.

A RuleOnAttribute attribute placed on the class indicates what type of object the rule works on and when the rule should fire.

The rule is called when the object of the specified type is being deleted from the model, whether it is deleted in the UI or programmatically.

System..::.Object
  Microsoft.VisualStudio.Modeling..::.Rule
    Microsoft.VisualStudio.Modeling..::.DeletingRule
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
Page view tracker