DefaultSettingsSection.Timeout Property

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

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)

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