CompilerError.ToString Method

Definition

Returns a string that represents the current CompilerError.

C#
public override string ToString();

Returns

A string that represents the current CompilerError.

Remarks

Converts the diagnostic to a string of the following form:

[filename(line,column):] AAAAA CSXXXX: message

In this example, AAAAA is either: "warning", "error", or "fatal error", and CSXXXX is the diagnostic number in decimal format. This is the same format seen at the command line.

Applies to

Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5