Export (0) Print
Expand All

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.dll)

public abstract class TransactionRollingBackRule : Rule
public abstract class TransactionRollingBackRule extends Rule
public abstract class TransactionRollingBackRule extends Rule

You define a class derived from TransactionRollingBackRule when you want to do something programmatically when an object of a specific type is added to the model.

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

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).

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

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

Community Additions

ADD
Show:
© 2014 Microsoft