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
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET