Compartilhar via


VCMidlTool.WarningLevel Property

Gets or sets a value indicating how strictly the compiler checks for potentially suspect constructs.

Namespace:  Microsoft.VisualStudio.VCProjectEngine
Assembly:  Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)

Syntax

'Declaration
Property WarningLevel As midlWarningLevelOption
midlWarningLevelOption WarningLevel { get; set; }
property midlWarningLevelOption WarningLevel {
    midlWarningLevelOption get ();
    void set (midlWarningLevelOption value);
}
abstract WarningLevel : midlWarningLevelOption with get, set
function get WarningLevel () : midlWarningLevelOption 
function set WarningLevel (value : midlWarningLevelOption)

Property Value

Type: Microsoft.VisualStudio.VCProjectEngine.midlWarningLevelOption
A midlWarningLevelOption enumeration.

Remarks

WarningLevel exposes the functionality of the C++ compiler's /w, /Wn, /WX, /Wall, /wln, /wdn, /wen, /won (Warning Level) option and the MIDL compiler's /w, /Wn, /WX, /Wall, /wln, /wdn, /wen, /won (Warning Level) option.

Use the warningLevelOption enumeration to change the value of the VCCLCompilerTool property.

Use the midlWarningLevelOption enumeration to change the value of the VCMidlTool property.

.NET Framework Security

See Also

Reference

VCMidlTool Interface

Microsoft.VisualStudio.VCProjectEngine Namespace