LinkedTransaction Class

Definition

Important

This API is not CLS-compliant.

Class that handles opening and closing of a VS Globally linked transaction through the IVsLinkedUndoTransactionManager class. Also manages an IMS transaction within this linked transaction

public ref class LinkedTransaction : MarshalByRefObject, IDisposable
[System.CLSCompliant(false)]
public class LinkedTransaction : MarshalByRefObject, IDisposable
public class LinkedTransaction : MarshalByRefObject, IDisposable
[<System.CLSCompliant(false)>]
type LinkedTransaction = class
    inherit MarshalByRefObject
    interface IDisposable
type LinkedTransaction = class
    inherit MarshalByRefObject
    interface IDisposable
Public Class LinkedTransaction
Inherits MarshalByRefObject
Implements IDisposable
Inheritance
LinkedTransaction
Attributes
Implements

Constructors

LinkedTransaction(String, IServiceProvider)

Create a transaction that can potentially span multiple designers. First opens a linked undo transaction, then opens an IMS transaction. This version uses the currently opened document.

LinkedTransaction(String, IServiceProvider, ModelingDocData)

Create a transaction that can potentially span multiple designers. First opens a linked undo transaction, then opens an IMS transaction.

Properties

GlobalUndoContext

A value put into a transaction's context to indicate that it is a global undo.

HasPendingChanges
IsActive

True iff the wrapped IMS transaction is active

Transaction

Returns the IMS transaction we're wrapping

Methods

Commit()

Commit the transaction. First commits the IMS transaction, then the linked undo transaction.

Dispose()

implement IDisposable.Dispose()

Finalize()

Finalizer.

Rollback()

Roll back the transaction. First rolls back the IMS transaction, then aborts linked undo transaction.

Applies to