IServiceTransactionConfigBase::TransactionTimeout method (comsvcs.h)

Sets the transaction time-out for a new transaction.

Syntax

HRESULT TransactionTimeout(
  ULONG ulTimeoutSec
);

Parameters

ulTimeoutSec

The transaction time-out, in seconds.

Return value

This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_FAIL, and S_OK.

Remarks

If the transaction does not either commit or abort within the transaction time-out period, the transaction must automatically abort. This method is ignored if the new context enlists as a nonroot transaction or does not use transactions.

Requirements

   
Minimum supported client Windows XP with SP1 [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header comsvcs.h

See also

IServiceTransactionConfigBase