Muokkaa

Jaa


CompilerError Class

Definition

Caution

The recommended alternative is Microsoft.CSharp.CSharpCodeProvider and System.CodeDom.Compiler.ICodeCompiler. The CSharpCodeProvider and CodeDom ICodeCompiler provide a much richer set of functionality for specifying how to launch the compiler.

Represents an error or diagnostic message reported by the compiler.

public ref class CompilerError
public class CompilerError
[System.Obsolete("The recommended alternative is Microsoft.CSharp.CSharpCodeProvider and System.CodeDom.Compiler.ICodeCompiler.  The CSharpCodeProvider and CodeDom ICodeCompiler provide a much richer set of functionality for specifying how to launch the compiler.")]
public class CompilerError
type CompilerError = class
[<System.Obsolete("The recommended alternative is Microsoft.CSharp.CSharpCodeProvider and System.CodeDom.Compiler.ICodeCompiler.  The CSharpCodeProvider and CodeDom ICodeCompiler provide a much richer set of functionality for specifying how to launch the compiler.")>]
type CompilerError = class
Public Class CompilerError
Inheritance
CompilerError
Attributes

Constructors

CompilerError()

Initializes a new instance of the CompilerError class.

Fields

ErrorLevel

Specifies the severity of this diagnostic.

ErrorMessage

Specifies the diagnostic message text.

ErrorNumber

Specifies the diagnostic number.

SourceColumn

Specifies the column of the source text that caused the diagnostic (1-based), or 0 if there is no column information.

SourceFile

Specifies the file name of the source text that caused the diagnostic, or an empty string ("").

SourceLine

Specifies the line of the source text that caused the diagnostic (1-based), or 0 if there is no line information.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current CompilerError.

Applies to

See also