用于创建新的外部错误。
命名空间: Microsoft.VisualStudio.TextManager.Interop
程序集: Microsoft.VisualStudio.TextManager.Interop.8.0(在 Microsoft.VisualStudio.TextManager.Interop.8.0.dll 中)
语法
声明
Public Structure ExternalError
public struct ExternalError
public value class ExternalError
[<Sealed>]
type ExternalError = struct end
JScript 支持使用结构,但是不支持新结构的声明。
ExternalError 类型公开以下成员。
方法
名称 | 说明 | |
---|---|---|
![]() |
Equals | 指示此实例与指定对象是否相等。 (继承自 ValueType。) |
![]() |
GetHashCode | 返回此实例的哈希代码。 (继承自 ValueType。) |
![]() |
GetType | 获取当前实例的 Type。 (继承自 Object。) |
![]() |
ToString | 返回该实例的完全限定类型名。 (继承自 ValueType。) |
页首
字段
名称 | 说明 | |
---|---|---|
![]() |
bstrFileName | 包含错误的文件的文件名。 |
![]() |
bstrText | 错误文本。 |
![]() |
fError | 非零用于错误,警告的零。 |
![]() |
iCol | 错误列数。 |
![]() |
iErrorID | 错误 ID. |
![]() |
iLine | 错误行号。 |
页首
备注
COM 签名
从:singlefileeditor.idl
typedef struct _tag_ExternalError {
long iLine;
long iCol;
long iErrorID;
BOOL fError;
BSTR bstrText;
BSTR bstrFileName;
} ExternalError;
此机制用于 IVsEnumExternalErrors 接口和通过对 Next 方法的调用返回。
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。