CompilationSection.MaxBatchSize Properti
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
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