Compiler.WarningLevel Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com 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
Show: