Export (0) Print
Expand All

IPromotableSinglePhaseNotification.Initialize Method

Notifies a transaction participant that enlistment has completed successfully.

Namespace: System.Transactions
Assembly: System.Transactions (in system.transactions.dll)

void Initialize ()
void Initialize ()
function Initialize ()
Not applicable.

Exception typeCondition

TransactionException

An attempt to enlist or serialize a transaction.

If initialization logic is required to prepare an enlisted object to participate in a transaction, it is preferable to implement that logic in this method instead of in a constructor. In this way, the initialization occurs only if the object is successfully enlisted as a transaction participant.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft