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
'Dichiarazione
Property WarnAsError As Boolean
Get
Set
bool WarnAsError { get; set; }
property bool WarnAsError {
bool get ();
void set (bool value);
}
abstract WarnAsError : bool with get, set
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.