Transaction Class

Microsoft Deployment Compression & Installer

Copy image CopyHover image
Deployment Tools Foundation Transaction Class
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstallerTransaction
[MSI 4.5] Handle to a multi-session install transaction.
Declaration Syntax
C# Visual Basic Visual C++
public class Transaction : InstallerHandle
Public Class Transaction
	Inherits InstallerHandle
public ref class Transaction : public InstallerHandle
Members
All Members Constructors Methods Properties Events



Icon Member Description
Transaction(String, TransactionAttributes)
[MSI 4.5] Begins transaction processing of a multi-package installation.

Close()()()()
Closes the handle. After closing a handle, further method calls may throw an InvalidHandleException.
(Inherited from InstallerHandle.)
Commit()()()()
Ends the install transaction and commits all changes to the system belonging to the transaction.

CreateObjRef(Type)
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()()()()
Closes the handle. After closing a handle, further method calls may throw an InvalidHandleException.
(Inherited from InstallerHandle.)
Dispose(Boolean)
Closes the handle. After closing a handle, further method calls may throw an InvalidHandleException.
(Inherited from InstallerHandle.)
Equals(Object)
Tests whether this handle object is equal to another handle object. Two handle objects are equal if their types are the same and their native integer handles are the same.
(Inherited from InstallerHandle.)
Finalize()()()()
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
FromHandle(IntPtr, Boolean)
Creates a new Transaction object from an integer handle.

GetHashCode()()()()
Gets a hash value for the handle object.
(Inherited from InstallerHandle.)
GetLifetimeService()()()()
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.)
Handle
Gets the native integer handle.
(Inherited from InstallerHandle.)
InitializeLifetimeService()()()()
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
IsClosed
Checks if the handle is closed. When closed, method calls on the handle object may throw an InvalidHandleException.
(Inherited from InstallerHandle.)
Join(TransactionAttributes)
Makes the current process the owner of the multi-package installation transaction.

MemberwiseClone(Boolean)
Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject.)
MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
Name
Gets the name of the transaction.

OwnerChanged
Notifies listeners when the process that owns the transaction changed.

Rollback()()()()
Ends the install transaction and undoes changes to the system belonging to the transaction.

ToString()()()()
Returns a string that represents the current object.
(Inherited from Object.)
Inheritance Hierarchy

Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller.dll) Version: 3.0.0.0 (3.9.1006.0)