Bahasa

Compiler.WarningLevel Properti

Definisi

Mendapatkan tingkat peringatan kompilator.

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

Nilai Properti

Nilai yang menentukan tingkat peringatan pengkompilasi.

Atribut

Keterangan

Menentukan tingkat peringatan kompilator default; menentukan tingkat di mana penyedia bahasa memperlakukan peringatan kompilasi sebagai kesalahan.

Berlaku untuk