CompilationSection.Strict Property

 

Gets or sets the Visual Basic strict compile option.

Namespace:   System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

[<ConfigurationPropertyAttribute("strict", DefaultValue = false)>]
member Strict : bool with get, set

Property Value

Type: System.Boolean

true 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.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: