CompilationSection.Strict プロパティ
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
Visual Basic strict コンパイル オプションを取得または設定します。
public:
property bool Strict { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("strict", DefaultValue=false)]
public bool Strict { get; set; }
[<System.Configuration.ConfigurationProperty("strict", DefaultValue=false)>]
member this.Strict : bool with get, set
Public Property Strict As Boolean
プロパティ値
true です。
- 属性
例
次のコード例は、 Strict プロパティの使用方法を示しています。 このコード例は、 CompilationSection クラスに提供されるより大きな例の一部です。
// Display Strict property.
Console.WriteLine("Strict: {0}",
configSection.Strict);
// Set Strict property.
configSection.Strict = false;
' Display Strict property.
Console.WriteLine("Strict: {0}", _
configSection.Strict)
' Set Strict property.
configSection.Strict = False
注釈
true場合、コンパイルでは、データ損失が発生するデータ型変換、および数値型と文字列間の変換が明示的に禁止されます。