DefaultSettingsSection.Timeout Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Spolupracujte s námi na GitHubu
Zdroj tohoto obsahu najdete na GitHubu, kde můžete také vytvářet a kontrolovat problémy a žádosti o přijetí změn. Další informace najdete v našem průvodci pro přispěvatele.