CompilationSection.Debug 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
릴리스 이진 파일 또는 디버그 이진 파일을 컴파일할지 여부를 지정하는 값을 가져오거나 설정합니다.
public:
property bool Debug { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("debug", DefaultValue=false)]
public bool Debug { get; set; }
[<System.Configuration.ConfigurationProperty("debug", DefaultValue=false)>]
member this.Debug : bool with get, set
Public Property Debug As Boolean
속성 값
true디버그 이진 파일이 컴파일에 사용되는 경우 그렇지 않으면 . false
false 는 릴리스 이진 파일이 컴파일에 사용되도록 지정합니다. 기본값은 false입니다.
- 특성
예제
다음 코드 예제에서는 속성을 사용 하는 방법을 보여 줍니다 Debug . 이 코드 예제는 클래스에 제공된 더 큰 예제의 CompilationSection 일부입니다.
// Display Debug property.
Console.WriteLine("Debug: {0}",
configSection.Debug);
// Set Debug property.
configSection.Debug = false;
' Display Debug property.
Console.WriteLine("Debug: {0}", _
configSection.Debug)
' Set Debug property.
configSection.Debug = False