CompilationSection.BatchTimeout 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置批处理编译的超时期限(以秒为单位)。
public:
property TimeSpan BatchTimeout { TimeSpan get(); void set(TimeSpan value); };
[System.ComponentModel.TypeConverter(typeof(System.Configuration.TimeSpanSecondsOrInfiniteConverter))]
[System.Configuration.ConfigurationProperty("batchTimeout", DefaultValue="00:15:00")]
[System.Configuration.TimeSpanValidator(MaxValueString="10675199.02:48:05.4775807", MinValueString="00:00:00")]
public TimeSpan BatchTimeout { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Configuration.TimeSpanSecondsOrInfiniteConverter))>]
[<System.Configuration.ConfigurationProperty("batchTimeout", DefaultValue="00:15:00")>]
[<System.Configuration.TimeSpanValidator(MaxValueString="10675199.02:48:05.4775807", MinValueString="00:00:00")>]
member this.BatchTimeout : TimeSpan with get, set
Public Property BatchTimeout As TimeSpan
属性值
一个值,该值指示为批处理编译而授予的时间(以秒为单位)。
- 属性
示例
下面的代码示例演示如何使用该 BatchTimeout 属性。 该代码示例是 CompilationSection 类中的一个较大示例的一部分。
// Display BatchTimeout property.
Console.WriteLine("BatchTimeout: {0}",
configSection.BatchTimeout);
// Set BatchTimeout property.
configSection.BatchTimeout = TimeSpan.FromMinutes(15);
' Display BatchTimeout property.
Console.WriteLine("BatchTimeout: {0}", _
configSection.BatchTimeout)
' Set BatchTimeout property.
configSection.BatchTimeout = TimeSpan.FromMinutes(15)
注解
指示批处理编译的超时期限(以秒为单位)。 如果在超时期限内无法完成编译,编译器将还原为当前页的单编译模式。