CompilationSection.Strict Eigenschap

Definitie

Hiermee haalt u de optie Visual Basic strict compileer op.

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

Waarde van eigenschap

true als de optie Visual Basic strict compiler wordt gebruikt; anders false. De standaardwaarde is true.

Kenmerken

Voorbeelden

In het volgende codevoorbeeld ziet u hoe u de Strict eigenschap gebruikt. Dit codevoorbeeld maakt deel uit van een groter voorbeeld voor de CompilationSection klasse.

// 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

Opmerkingen

Wanneer truecompilatie expliciet geen conversies van gegevenstypen toekent waarin gegevensverlies zou optreden, en elke conversie tussen numerieke typen en tekenreeksen.

Van toepassing op