Share via


ModelBusEnabledTextTransformation.ReportError Method

Converts from ModelBus errors to Text Template errors. Calls this.Error or this.Warning depending on the category value.

Namespace:  Microsoft.VisualStudio.TextTemplating.Modeling
Assembly:  Microsoft.VisualStudio.TextTemplating.Modeling.11.0 (in Microsoft.VisualStudio.TextTemplating.Modeling.11.0.dll)

Syntax

'Declaration
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
)

Parameters

  • message
    Type: String

    Message string

.NET Framework Security

See Also

Reference

ModelBusEnabledTextTransformation Class

Microsoft.VisualStudio.TextTemplating.Modeling Namespace