C# WarningLevel属性的作用是什么?

C# WarningLevel属性的作用是什么?,c#,asp.net,web-applications,C#,Asp.net,Web Applications,我在我的代码中使用了这个,但我不确定它到底做了什么 <%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" WarningLevel="4" %> 提前感谢指定默认编译器警告级别;确定语言提供程序将编译警告视为错误的级

我在我的代码中使用了这个,但我不确定它到底做了什么

<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" WarningLevel="4" %>


提前感谢

指定默认编译器警告级别;确定语言提供程序将编译警告视为错误的级别

[ConfigurationPropertyAttribute("warningLevel", DefaultValue = )]
[IntegerValidatorAttribute(MinValue = , MaxValue = )]
public int WarningLevel { get; }
希望这有助于

和。直接: