Transaction Constructor (name, attributes)

DTF API

Copy image CopyHover image
Deployment Tools Foundation Transaction Constructor (name, attributes)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstallerTransactionTransaction(String, TransactionAttributes)
[MSI 4.5] Begins transaction processing of a multi-package installation.
Declaration Syntax
C# Visual Basic Visual C++ F#
public Transaction(
	string name,
	TransactionAttributes attributes
)
Public Sub New ( 
	name As String,
	attributes As TransactionAttributes
)
public:
Transaction(
	String^ name, 
	TransactionAttributes attributes
)
new : 
        name : string * 
        attributes : TransactionAttributes -> Transaction
Parameters
name (String)
Name of the multi-package installation.
attributes (TransactionAttributes)
Select optional behavior when beginning the transaction.
Remarks

Win32 MSI API: MsiBeginTransaction

Exceptions
Exception Condition
InstallerException The transaction could not be initialized.

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