WarningLevelAsErrors Property of the Compiler Object

WarningLevelAsErrors Property of the Compiler Object

Gets and sets the least important warning level that is treated as an error. For example, if the Compiler.WarningLevelAsErrors property is 1, fatal errors (value 0) and warnings that will likely cause a failure in the next compilation stage or an error in the instance space simulator (value 1) are treated as errors. Warnings that should be fixed but can be ignored (value 2) and informational messages (value 3) are treated as warnings.

The Compiler.WarningLevelReported property determines whether the warning is reported.

  [C#]
public WarningLevel WarningLevelAsErrors {get; set;}

FakePre-8257e212e7f14bf8bf222df95e6463c2-86809800fa38459387c9bf55dc0a8b45

Remarks

The default value is 0.

Requirements

Namespace

Defined in Microsoft.SystemDefinitionModel.Tools.

Assembly

Requires SdmCompile (in SdmCompile.dll).

.NET Framework

Requires .NET Framework 2.0.

See Also

Microsoft.SystemDefinitionModel.Tools
Compiler
WarningLevel
Compiler.WarningLevelReported

Send comments about this topic to Microsoft

Build date: 10/2/2007