CompilationSection.Strict Property
.NET Framework (current version)
Gets or sets the Visual Basic strict compile option.
Assembly: System.Web (in System.Web.dll)
[<ConfigurationPropertyAttribute("strict", DefaultValue = false)>] member Strict : bool with get, set
Property Value
Type: System.Booleantrue if the Visual Basic strict compile option is used; otherwise, false. The default is true.
When true, compilation explicitly disallows any data-type conversions in which data loss would occur, and any conversion between numeric types and strings.
The following code example demonstrates how to use the Strict property. This code example is part of a larger example provided for the CompilationSection class.
.NET Framework
Available since 2.0
Available since 2.0
Show: