CompilationSection.Batch 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
일괄 처리 컴파일이 시도되었는지 여부를 나타내는 값을 가져오거나 설정합니다.
public:
property bool Batch { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("batch", DefaultValue=true)]
public bool Batch { get; set; }
[<System.Configuration.ConfigurationProperty("batch", DefaultValue=true)>]
member this.Batch : bool with get, set
Public Property Batch As Boolean
속성 값
true일괄 처리 컴파일을 시도하면 다음을 수행합니다. 그렇지 않으면 . false 기본값은 true입니다.
- 특성
예제
다음 코드 예제에서는 속성을 사용 하는 방법을 보여 줍니다 Batch . 이 코드 예제는 클래스에 제공된 더 큰 예제의 CompilationSection 일부입니다.
// Display Batch property.
Console.WriteLine("Batch: {0}", configSection.Batch);
// Set Batch property.
configSection.Batch = true;
' Display Batch property.
Console.WriteLine("Batch: {0}", _
configSection.Batch)
' Set Batch property.
configSection.Batch = True
설명
컴파일되지 않은 파일에 액세스할 때 필요한 컴파일로 인한 지연을 변경하려면 true 이 특성을 설정합니다. 이 특성을 설정하면 true ASP.NET 일괄 처리 모드에서 컴파일되지 않은 모든 파일을 미리 컴파일하도록 지시합니다. 파일이 처음 컴파일될 때 지연이 발생합니다. 그러나 파일이 컴파일되면 지연이 제거됩니다.