Bagikan melalui


CompilationSection.MaxBatchSize Properti

Definisi

Mendapatkan atau mengatur jumlah maksimum halaman per kompilasi batch.

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

Nilai Properti

Nilai bilangan bulat yang menunjukkan jumlah maksimum halaman yang akan dikompilasi ke dalam satu batch. Jumlah default halaman adalah 1000.

Atribut

Contoh

Contoh kode berikut menunjukkan cara menggunakan MaxBatchSize properti . Contoh kode ini adalah bagian dari contoh yang lebih besar yang disediakan untuk CompilationSection kelas .

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

Berlaku untuk