Compiler.WarningLevel Egenskap

Definition

Hämtar kompilatorns varningsnivå.

public:
 property int WarningLevel { int get(); };
[System.Configuration.ConfigurationProperty("warningLevel", DefaultValue=0)]
[System.Configuration.IntegerValidator(MaxValue=4, MinValue=0)]
public int WarningLevel { get; }
[<System.Configuration.ConfigurationProperty("warningLevel", DefaultValue=0)>]
[<System.Configuration.IntegerValidator(MaxValue=4, MinValue=0)>]
member this.WarningLevel : int
Public ReadOnly Property WarningLevel As Integer

Egenskapsvärde

Ett värde som anger varningsnivån för kompilatorn.

Attribut

Kommentarer

Anger standardvarningsnivån för kompilatorn. avgör på vilken nivå språkprovidern behandlar kompileringsvarningar som fel.

Gäller för