ISimpleErrorContext.AddError 方法
這個應用程式開發介面支援 .NET Framework 基礎結構,但您不可以直接在程式碼中使用它。
僅限 Microsoft 內部使用。
命名空間: Microsoft.VisualStudio.VCProjectEngine
組件: Microsoft.VisualStudio.VCProjectEngine (在 Microsoft.VisualStudio.VCProjectEngine.dll 中)
語法
'宣告
Sub AddError ( _
text As String, _
errorID As String, _
File As String, _
line As Integer _
)
void AddError(
string text,
string errorID,
string File,
int line
)
void AddError(
[InAttribute] String^ text,
[InAttribute] String^ errorID,
[InAttribute] String^ File,
[InAttribute] int line
)
abstract AddError :
text:string *
errorID:string *
File:string *
line:int -> unit
function AddError(
text : String,
errorID : String,
File : String,
line : int
)
參數
text
類型:String錯誤文字
errorID
類型:String錯誤 ID
File
類型:String包含錯誤的檔案
line
類型:Int32檔案中的行
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。