This documentation is archived and is not being maintained.

DefaultSettingsSection.Timeout Property

Gets or sets a default time after which a transaction times out.

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

public TimeSpan Timeout { get; set; }
/** @property */
public TimeSpan get_Timeout ()

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

public function get Timeout () : TimeSpan

public function set Timeout (value : TimeSpan)

Not applicable.

Property Value

A TimeSpan object. The default property is 00:01:00.

Exception typeCondition

ArgumentOutOfRangeException

An attempt to set this property to negative values.

This property retrieves its value from the default timeout value in the config file. It is automatically adjusted by the MaxTimeout value at runtime.

A value of 00:00:00 (or zero) is interpreted as infinity.

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
Show: