共用方式為


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

屬性值

一個表示批次編譯所獲得的時間(秒數)的數值。

屬性

範例

以下程式碼範例示範如何使用該 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)

備註

表示批次編譯的逾時時間(秒數)。 若無法在逾時期內完成編譯,編譯器會對當前頁面回復為單一編譯模式。

適用於