VCMidlTool.WarnAsError Property

Gets or sets a value indicating whether the compiler treats all warnings as errors.

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

Syntax

'Declaration
Property WarnAsError As Boolean
'Usage
Dim instance As VCMidlTool 
Dim value As Boolean 

value = instance.WarnAsError

instance.WarnAsError = value
bool WarnAsError { get; set; }
property bool WarnAsError {
    bool get ();
    void set (bool value);
}
function get WarnAsError () : boolean 
function set WarnAsError (value : boolean)

Property Value

Type: System.Boolean
true if the compiler treats all warnings as errors; otherwise, false.

Remarks

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

.NET Framework Security

See Also

Reference

VCMidlTool Interface

VCMidlTool Members

Microsoft.VisualStudio.VCProjectEngine Namespace