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.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)

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

public ref class TransactionRollingBackRule abstract : Rule

NameDescription
System_CAPS_pubpropertyFireBefore

true if this rule will be executed before the change occurs.(Inherited from Rule.)

System_CAPS_pubpropertyFireImmediately

true if this rule will execute immediately the change occurs.(Inherited from Rule.)

System_CAPS_pubpropertyFireOnLocalCommit

true if this rule will execute when the current transaction commits.(Inherited from Rule.)

System_CAPS_pubpropertyFireOnTopLevelCommit

true if this rule will execute when the top level transaction commits.(Inherited from Rule.)

System_CAPS_pubpropertyFireTime

Gets or sets when the rule should execute. Normally set by the RuleOn attribute.(Inherited from Rule.)

System_CAPS_pubpropertyIsEnabled

Gets or sets whether the rule is enabled. Normally true by default, but you can initialize it to false in the RuleOn attribute.(Inherited from Rule.)

System_CAPS_pubpropertyPriority

Gets the priority that is assigned to the rule. Helps to determine the order in which rules are executed at the end of a transaction.(Inherited from Rule.)

NameDescription
System_CAPS_pubmethodCompareTo(Object^)

Compares the rule to another object.(Inherited from Rule.)

System_CAPS_pubmethodCompareTo(Rule^)

Compares the rule to another rule by their IDs.(Inherited from Rule.)

System_CAPS_pubmethodEquals(Object^)

Verifies whether the rule is equal to another object.(Inherited from Rule.)

System_CAPS_pubmethodEquals(Rule^)

Verifies whether a rule is equal to another rule.(Inherited from Rule.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Gets the hash code for the rule.(Inherited from Rule.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodTransactionRollingBack(TransactionRollbackEventArgs^)

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

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

Return to top
Show: