8 [PermissionSet(
SecurityAction.InheritanceDemand, Name =
"FullTrust")]
15 private string errorNumber;
19 private string errorText;
21 private string fileName;
113 errorNumber =
string.Empty;
114 errorText =
string.Empty;
115 fileName =
string.Empty;
124 public CompilerError(
string fileName,
int line,
int column,
string errorNumber,
string errorText)
127 this.column = column;
128 this.errorNumber = errorNumber;
129 this.errorText = errorText;
130 this.fileName = fileName;
143 IsWarning ?
"warning" :
"error",
static CultureInfo InvariantCulture
Gets the T:System.Globalization.CultureInfo object that is culture-independent (invariant).
int Line
Gets or sets the line number where the source of the error occurs.
string ErrorNumber
Gets or sets the error number.
Represents a compiler error or warning.
string ErrorText
Gets or sets the text of the error message.
SecurityAction
Specifies the security actions that can be performed using declarative security.
override string ToString()
Provides an implementation of Object's M:System.Object.ToString method.
string FileName
Gets or sets the file name of the source file that contains the code which caused the error.
bool IsWarning
Gets or sets a value that indicates whether the error is a warning.
Specifies that the class can be serialized.
CompilerError()
Initializes a new instance of the T:System.CodeDom.Compiler.CompilerError class.
Provides information about a specific culture (called a locale for unmanaged code development)....
CompilerError(string fileName, int line, int column, string errorNumber, string errorText)
Initializes a new instance of the T:System.CodeDom.Compiler.CompilerError class using the specified f...
int Column
Gets or sets the column number where the source of the error occurs.