CompilationSection.MaxBatchSize Egenskap

Definition

Hämtar eller anger det maximala antalet sidor per batchkompilering.

public:
 property int MaxBatchSize { int get(); void set(int value); };
[System.Configuration.ConfigurationProperty("maxBatchSize", DefaultValue=1000)]
public int MaxBatchSize { get; set; }
[<System.Configuration.ConfigurationProperty("maxBatchSize", DefaultValue=1000)>]
member this.MaxBatchSize : int with get, set
Public Property MaxBatchSize As Integer

Egenskapsvärde

Ett heltalsvärde som anger det maximala antalet sidor som ska kompileras till en enda batch. Standardantalet sidor är 1 000.

Attribut

Exempel

Följande kodexempel visar hur du använder egenskapen MaxBatchSize . Det här kodexemplet är en del av ett större exempel för CompilationSection klassen.

// Display MaxBatchSize property.
Console.WriteLine("MaxBatchSize: {0}", 
  configSection.MaxBatchSize);

// Set MaxBatchSize property.
configSection.MaxBatchSize = 1000;
' Display MaxBatchSize property.
Console.WriteLine("MaxBatchSize: {0}", _
 configSection.MaxBatchSize)

' Set MaxBatchSize property.
configSection.MaxBatchSize = 1000

Gäller för