ModelBusEnabledTextTransformation.ReportError 方法

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

命名空间:  Microsoft.VisualStudio.TextTemplating.Modeling
程序集:  Microsoft.VisualStudio.TextTemplating.Modeling.10.0(在 Microsoft.VisualStudio.TextTemplating.Modeling.10.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
)

参数

.NET Framework 安全性

请参见

参考

ModelBusEnabledTextTransformation 类

Microsoft.VisualStudio.TextTemplating.Modeling 命名空间