TransactionRollingBackRule Class

Represents a rule that is called when a transaction is being rolled back in the model.

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

Syntax

'Declaration
Public MustInherit Class TransactionRollingBackRule _
    Inherits Rule
'Usage
Dim instance As TransactionRollingBackRule
public abstract class TransactionRollingBackRule : Rule
public ref class TransactionRollingBackRule abstract : public Rule
public abstract class TransactionRollingBackRule extends Rule

Remarks

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

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

The rule is called when the specified type of transaction is being rolled back in the model.

You can also define rules for when a transaction is beginning (TransactionBeginningRule) and when a transaction is committing (TransactionCommittingRule).

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Modeling.Rule
    Microsoft.VisualStudio.Modeling.TransactionRollingBackRule

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

TransactionRollingBackRule Members

Microsoft.VisualStudio.Modeling Namespace

Other Resources

How to: Create Custom Rules