LinkedTransaction Class
Manages the opening and closing of a globally linked transaction and any in-memory store (IMS) transactions that are in the linked transaction.
This API is not CLS-compliant.
Inheritance Hierarchy
System.Object
System.MarshalByRefObject
Microsoft.VisualStudio.Modeling.Shell.LinkedTransaction
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll)
Syntax
'Declaration
<CLSCompliantAttribute(False)> _
Public Class LinkedTransaction _
Inherits MarshalByRefObject _
Implements IDisposable
[CLSCompliantAttribute(false)]
public class LinkedTransaction : MarshalByRefObject,
IDisposable
[CLSCompliantAttribute(false)]
public ref class LinkedTransaction : public MarshalByRefObject,
IDisposable
[<CLSCompliantAttribute(false)>]
type LinkedTransaction =
class
inherit MarshalByRefObject
interface IDisposable
end
public class LinkedTransaction extends MarshalByRefObject implements IDisposable
The LinkedTransaction type exposes the following members.
Constructors
Name | Description | |
---|---|---|
LinkedTransaction(String, IServiceProvider) | Initializes a new instance of the LinkedTransaction class. | |
LinkedTransaction(String, IServiceProvider, ModelingDocData) | Initializes a new instance of the LinkedTransaction class. |
Top
Properties
Name | Description | |
---|---|---|
GlobalUndoContext | Gets the global undo context for the transaction. | |
HasPendingChanges | Gets the IMS transaction and verifies whether it contains changes that have not completed. | |
IsActive | Gets the IMS transaction and verifies whether it is currently active. | |
Transaction | Gets the IMS transaction. |
Top
Methods
Name | Description | |
---|---|---|
Commit | Commits the IMS transaction and the linked undo transaction. | |
CreateObjRef | Security Critical. Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) | |
Dispose | Releases all resources used by the current instance of the LinkedTransaction class. | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Finalizes the transaction but does not dispose the transaction. (Overrides Object.Finalize().) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetLifetimeService | Security Critical. Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
InitializeLifetimeService | Security Critical. Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | |
MemberwiseClone() | Creates a shallow copy of the current Object. (Inherited from Object.) | |
MemberwiseClone(Boolean) | Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.) | |
Rollback | Undoes the IMS transaction and the linked undo transaction. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Remarks
This class implements the IVsLinkedUndoTransactionManager interface.
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.