Share via


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。それ以外の場合は falsefalse は、リリース バイナリをコンパイルすることを指定します。 既定値は、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

適用対象