共用方式為


ModelBusEnabledTextTransformation.ReportError 方法 (ErrorCategory, String)

 

將 ModelBus 錯誤轉換為文字範本錯誤。  根據分類值呼叫 this.Error 或 this.Warning。  

命名空間:   Microsoft.VisualStudio.TextTemplating.Modeling
組件:  Microsoft.VisualStudio.TextTemplating.Modeling.12.0 (於 Microsoft.VisualStudio.TextTemplating.Modeling.12.0.dll)

語法

protected virtual void ReportError(
    ErrorCategory category,
    string message
)
protected:
virtual void ReportError(
    ErrorCategory category,
    String^ message
)
abstract ReportError : 
        category:ErrorCategory *
        message:string -> unit
override ReportError : 
        category:ErrorCategory *
        message:string -> unit
Protected Overridable Sub ReportError (
    category As ErrorCategory,
    message As String
)

參數

另請參閱

ModelBusEnabledTextTransformation 類別
Microsoft.VisualStudio.TextTemplating.Modeling 命名空間

回到頁首