Bagikan melalui


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

See Also

Reference

ITextTemplating Interface

Microsoft.VisualStudio.TextTemplating.VSHost Namespace