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

适用于