Export (0) Print
Expand All

MachineSettingsSection.MaxTimeout Property

Note: This property is new in the .NET Framework version 2.0.

Gets a maximum amount of time allowed before a transaction times out.

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

public TimeSpan MaxTimeout { get; set; }
/** @property */
public TimeSpan get_MaxTimeout ()

/** @property */
public void set_MaxTimeout (TimeSpan value)

public function get MaxTimeout () : TimeSpan

public function set MaxTimeout (value : TimeSpan)

Property Value

A TimeSpan object that contains the maximum allowable time. The default value is 00:10:00.

Exception typeCondition

ArgumentOutOfRangeException

An attempt to set this property to negative values.

This property can only be set in the machine.config file. A value of 00:00:00 (or zero) is interpreted as infinity.

Windows 98, Windows 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 .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2014 Microsoft