WarningLevelReported Property of the Compiler Object
WarningLevelReported Property of the Compiler Object
Gets and sets the least important warning level that is reported. For example, if the Compiler.WarningLevelReported property is 1, only 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 reported. Warnings that should be fixed but can be ignored (value 2) and informational messages (value 3) are not reported.
The Compiler.WarningLevelAsErrors property determines whether the reported warning is reported as a warning or as an error.
[C#] public WarningLevel WarningLevelReported {get; set;}
FakePre-5a0950dc89bb473abb533150c4be8d96-9044da73a871496eb3f85fb9a05844c4
Remarks
The default level is 2 (Warning2), which means that level 3 is ignored by default.
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.WarningLevelAsErrors
Send comments about this topic to Microsoft
Build date: 10/2/2007