Compiler.WarningLevel Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets the compiler warning level.

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

[ConfigurationPropertyAttribute("warningLevel", DefaultValue = 0)]
[IntegerValidatorAttribute(MinValue = 0, MaxValue = 4)]
public int WarningLevel { get; }

Property Value

Type: System.Int32

A value specifying the compiler warning level.

Specifies the default compiler warning level; determines the level at which the language provider treats compilation warnings as errors.

.NET Framework
Available since 2.0
Return to top