다음을 통해 공유


CompilationSection.Debug 속성

정의

릴리스 이진 파일 또는 디버그 이진 파일을 컴파일할지 여부를 지정하는 값을 가져오거나 설정합니다.

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

적용 대상