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
Visual Basic true
コンパイル オプションが有効な場合は explicit
。それ以外の場合は false
。
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
のコンパイル オプションが有効になります。 オプションが有効になっている場合は、、、、または ReDim
ステートメントを使用して、すべての変数をPublic
Dim
Private
明示的に宣言する必要があります。 既定値は、true
です。
製品 | バージョン |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET に関するフィードバック
.NET はオープンソース プロジェクトです。 フィードバックを提供するにはリンクを選択します。