This documentation is archived and is not being maintained.

CompilerParameters.TreatWarningsAsErrors Property

Gets or sets a value indicating whether to treat warnings as errors.

[Visual Basic]
Public Property TreatWarningsAsErrors As Boolean
public bool TreatWarningsAsErrors {get; set;}
public: __property bool get_TreatWarningsAsErrors();
public: __property void set_TreatWarningsAsErrors(bool);
public function get TreatWarningsAsErrors() : Boolean;
public function set TreatWarningsAsErrors(Boolean);

Property Value

true if warnings should be treated as errors; otherwise, false.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

CompilerParameters Class | CompilerParameters Members | System.CodeDom.Compiler Namespace