Freigeben über


CompilationSection.MaxBatchSize Eigenschaft

Definition

Ruft die maximale Anzahl von Seiten pro Batchkompilierung ab oder legt diese fest.

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

Eigenschaftswert

Ein ganzzahliger Wert, der die maximale Anzahl von Seiten angibt, die in einem einzelnen Batch kompiliert werden. Die Standardanzahl von Seiten beträgt 1000.

Attribute

Beispiele

Im folgenden Codebeispiel wird die Verwendung der MaxBatchSize -Eigenschaft veranschaulicht. Dieses Codebeispiel ist Teil eines größeren Beispiels, das für die CompilationSection-Klasse bereitgestellt wird.

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

Gilt für: