WarningLevel属性有什么作用?

时间:2014-07-03 11:12:15

标签: 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" %>

提前致谢

1 个答案:

答案 0 :(得分:1)

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

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

希望这有帮助

相关问题