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
)
参数
- category
类型:Microsoft.VisualStudio.Modeling.Integration.ErrorCategory
ModelBus ErrorCategory
- message
类型:System.String
消息字符串
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。