ITextTemplating.BeginErrorSession Method
Call this method before you process multiple text templates. Each type of error will be reported only once, until you call EndErrorSession.
Namespace: Microsoft.VisualStudio.TextTemplating.VSHost
Assembly: Microsoft.VisualStudio.TextTemplating.Interfaces.10.0 (in Microsoft.VisualStudio.TextTemplating.Interfaces.10.0.dll)
Syntax
'Declaration
Sub BeginErrorSession
void BeginErrorSession()
void BeginErrorSession()
abstract BeginErrorSession : unit -> unit
function BeginErrorSession()
Remarks
This method reduces the number of errors reported when you process a batch of templates, by removing duplicate reports of the same error. Call BeginErrorSession before processing the batch of templates, and call EndErrorSession afterwards.
.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.