CompilationSection.Explicit プロパティ
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
Microsoft Visual Basic explicit コンパイル オプションを使用するかどうかを示す値を取得または設定します。
public:
property bool Explicit { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("explicit", DefaultValue=true)]
public bool Explicit { get; set; }
[<System.Configuration.ConfigurationProperty("explicit", DefaultValue=true)>]
member this.Explicit : bool with get, set
Public Property Explicit As Boolean
プロパティ値
false は、Visual Basic explicit コンパイル オプションが無効になっていることを指定します。 既定値は、true です。
- 属性
例
次のコード例は、 Explicit プロパティの使用方法を示しています。 このコード例は、 CompilationSection クラスに提供されるより大きな例の一部です。
// Display Explicit property.
Console.WriteLine("Explicit: {0}",
configSection.Explicit);
// Set Explicit property.
configSection.Explicit = true;
' Display Explicit property.
Console.WriteLine("Explicit: {0}", _
configSection.Explicit)
' Set Explicit property.
configSection.Explicit = True
注釈
このプロパティは、Microsoft Visual Basic explicit コンパイル オプションの設定を指定します。
trueに設定すると、Visual Basic explicit コンパイル オプションが有効になります。 このオプションが有効になっている場合、すべての変数は、 Dim、 Private、 Public、または ReDim ステートメントを使用して明示的に宣言する必要があります。 既定値は、true です。