ModelBusEnabledTextTransformation.ReportError 方法

从 ModelBus 错误转换到文本模板错误。 基于类别值调用 this.Error 或 this.Warning。

命名空间:  Microsoft.VisualStudio.TextTemplating.Modeling
程序集:  Microsoft.VisualStudio.TextTemplating.Modeling.12.0(在 Microsoft.VisualStudio.TextTemplating.Modeling.12.0.dll 中)

语法

声明
Protected Overridable Sub ReportError ( _
    category As ErrorCategory, _
    message As String _
)
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 function ReportError(
    category : ErrorCategory, 
    message : String
)

参数

  • category
    类型:ErrorCategory

    ModelBus ErrorCategory

  • message
    类型:String

    消息字符串

.NET Framework 安全性

请参阅

参考

ModelBusEnabledTextTransformation 类

Microsoft.VisualStudio.TextTemplating.Modeling 命名空间