Modifica

Condividi tramite


CompilationSection.BatchTimeout Property

Definition

Gets or sets the time-out period, in seconds, for batch compilation.

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

Property Value

A value indicating the amount of time in seconds granted for batch compilation to occur.

Attributes

Examples

The following code example demonstrates how to use the BatchTimeout property. This code example is part of a larger example provided for the CompilationSection class.

// 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)

Remarks

Indicates the time-out period, in seconds, for batch compilation. If the compilation cannot be completed within the time-out period, the compiler reverts to single-compilation mode for the current page.

Applies to