CompilationSection.BatchTimeout Property

Definition

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

C#
[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; }

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.

C#
// 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

Proizvod Verzije
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1