Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MaxBatchSize Property

CompilationSection.MaxBatchSize Property

Gets or sets the maximum number of pages per batched compilation.

Namespace: System.Web.Configuration
Assembly: System.Web (in system.web.dll)

public int MaxBatchSize { get; set; }
/** @property */
public int get_MaxBatchSize ()

/** @property */
public void set_MaxBatchSize (int value)

public function get MaxBatchSize () : int

public function set MaxBatchSize (value : int)

Not applicable.

Property Value

An integer value indicating the maximum number of pages that will be compiled into a single batch. The default number of pages is 1000.

The following code example demonstrates how to use the MaxBatchSize property. This code example is part of a larger example provided for the CompilationSection class.

// Display MaxBatchSize property.
Console.WriteLine("MaxBatchSize: {0}", 
  configSection.MaxBatchSize);

// Set MaxBatchSize property.
configSection.MaxBatchSize = 1000;

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2015 Microsoft