ITransactionOptions::SetOptions

 

Applies To: Windows 10, Windows 7, Windows 8, Windows 8.1, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Server Technical Preview, Windows Vista

The SetOptions method is used to alter transaction attributes in a transaction options object.

Syntax

  
HRESULT SetOptions(   XACTOPT * pOptions);  

Parameters

pOptions
[in] Reference to a XACTOPT structure. This structure contains attribute information for a transaction options object.

Return Values

S_OK
Success.

E_OUTOFMEMORY
Unable to allocate memory.

E_INVALIDARG
The value of pOptions is NULL.

Remarks

SetOptions must not be invoked on a transaction options object which is currently in use by the ITransactionDispenser::BeginTransaction method. If it is, it returns XACT_E_NOTSUPPORTED.

Requirements

For an explanation of the requirement values, see Requirements (Component Services).

Platforms: Windows Server 2016, Windows 10, Windows Server 2012 R2, Windows 8.1, Windows Server 2012, Windows 8, Windows Server 2008 R2, Windows 7, Windows Server 2008, Windows Vista

Header: Declared in transact.h

See Also

ITransactionDispenser