共用方式為


CompilationSection.MaxBatchSize 屬性

定義

取得或設定每個批次編譯的最大頁數。

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

屬性值

一個整數值表示將編譯成單一批次的最大頁數。 預設的頁數是 1000 頁。

屬性

範例

以下程式碼範例示範如何使用該 MaxBatchSize 屬性。 此程式碼範例是本類別更大範例 CompilationSection 的一部分。

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

適用於