共用方式為


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

適用於