Modifier

Partager via


DefaultSettingsSection.Timeout Property

Definition

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

public:
 property TimeSpan Timeout { TimeSpan get(); void set(TimeSpan value); };
[System.Configuration.ConfigurationProperty("timeout", DefaultValue="00:01:00")]
[System.Configuration.TimeSpanValidator(MaxValueString="10675199.02:48:05.4775807", MinValueString="00:00:00")]
public TimeSpan Timeout { get; set; }
[<System.Configuration.ConfigurationProperty("timeout", DefaultValue="00:01:00")>]
[<System.Configuration.TimeSpanValidator(MaxValueString="10675199.02:48:05.4775807", MinValueString="00:00:00")>]
member this.Timeout : TimeSpan with get, set
Public Property Timeout As TimeSpan

Property Value

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

Attributes

Exceptions

An attempt to set this property to negative values.

Remarks

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.

Applies to