DeletingRule Class
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)
Syntax
Public MustInherit Class DeletingRule _
Inherits Rule
Dim instance As DeletingRule
public abstract class DeletingRule : Rule
public ref class DeletingRule abstract : public Rule
public abstract class DeletingRule extends Rule
Remarks
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.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.Modeling.Rule
Microsoft.VisualStudio.Modeling.DeletingRule
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.