ITextTemplatingCallback.ErrorCallback Method
Called when an error is encountered in processing a text template. If you are using the STextTemplating service, the error will also be displayed in the Visual Studio error window.
Namespace: Microsoft.VisualStudio.TextTemplating.VSHost
Assembly: Microsoft.VisualStudio.TextTemplating.Interfaces.10.0 (in Microsoft.VisualStudio.TextTemplating.Interfaces.10.0.dll)
Syntax
'Declaration
Sub ErrorCallback ( _
warning As Boolean, _
message As String, _
line As Integer, _
column As Integer _
)
void ErrorCallback(
bool warning,
string message,
int line,
int column
)
void ErrorCallback(
bool warning,
String^ message,
int line,
int column
)
abstract ErrorCallback :
warning:bool *
message:string *
line:int *
column:int -> unit
function ErrorCallback(
warning : boolean,
message : String,
line : int,
column : int
)
Parameters
- warning
Type: System.Boolean
Indicates whether the message is an error or a warning.
- message
Type: System.String
The error message.
- line
Type: System.Int32
The line of the text template where the error occurred.
- column
Type: System.Int32
The character position in the text template where the error occurred.
Remarks
Errors can be encountered both when the template is being compiled, and when the resulting code is being run.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.