CompilationSection.BatchTimeout 属性

定义

获取或设置批处理编译的超时期限(以秒为单位)。

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

属性值

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)

注解

指示批处理编译的超时期限(以秒为单位)。 如果在超时期间内无法完成编译,编译器将恢复为当前页的单编译模式。

适用于