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

适用于