CompilationSection.Explicit プロパティ

定義

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

プロパティ値

Visual Basic コンパイル オプションが有効な場合は a0/& 。それ以外の場合は。 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 コンパイル オプションが有効になります。 このオプションが有効になっている場合、すべての変数は、 DimPrivatePublic、または ReDim ステートメントを使用して明示的に宣言する必要があります。 既定値は、true です。

適用対象