DefaultSettingsSection.Timeout 属性

定义

获取或设置事务的默认超时时间。

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

属性值

TimeSpan 对象。 默认属性为 00:01:00。

属性

例外

尝试将此属性设置为负值。

注解

此属性从配置文件中的默认超时值中检索其值。 它在运行时由 MaxTimeout 值自动调整。

值 00:00:00 (或零) 解释为无穷大。

适用于