IJSVsaError 接口

定义

警告

此 API 现已过时。

提供在执行过程中遇到的编译错误的访问。Provides access to compilation errors encountered during execution.

public interface class IJSVsaError
[System.Obsolete("Use of this type is not recommended because it is being deprecated in Visual Studio 2005; there will be no replacement for this feature. Please see the ICodeCompiler documentation for additional help.")]
[System.Runtime.InteropServices.ComVisible(true)]
[System.Runtime.InteropServices.Guid("425EA439-6417-4F3E-BCC9-1AFAC79E3F66")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IJSVsaError
type IJSVsaError = interface
Public Interface IJSVsaError
派生
属性

属性

Description

获取对错误的简短说明,在某些情况下会返回对源代码中引起错误的标记的引用。Gets a brief description of the error, in some instances returning a reference to the token in the source code that is causing the error.

EndColumn

获取引发错误的源文本的结束列号(如果可用)。Gets the ending column number for the source text that caused the error, if available.

Line

获取发生错误的行号。Gets the line number on which an error occurs.

LineText

从引起错误的行获取源代码文本。Gets the text of the source code from the line that caused the error.

Number

获取唯一标识错误的编号。Gets a number that uniquely identifies the error.

Severity

设置错误严重级别。Sets the severity of the error.

SourceItem

获取对生成错误的 IJSVsaItem 对象的引用。Gets a reference to the IJSVsaItem object that generated the error.

SourceMoniker

获取包含错误的源项的完全限定名,采用脚本引擎可以识别的格式。Gets the fully qualified name of the source item that contained the error, in a format recognizable by the script engine.

StartColumn

获取引发错误的源文本的起始列号(如果可用)。Gets the starting column number for the source text that caused the error, if available.

适用于