Share via


TextTransformation.Errors Property

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Gets the error collection for the text template transformation process.

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

Syntax

'Declaration
Protected Friend ReadOnly Property Errors As CompilerErrorCollection
'Usage
Dim value As CompilerErrorCollection 

value = Me.Errors
protected internal CompilerErrorCollection Errors { get; }
protected public:
property CompilerErrorCollection^ Errors {
    CompilerErrorCollection^ get ();
}
protected internal function get Errors () : CompilerErrorCollection

Property Value

Type: System.CodeDom.Compiler.CompilerErrorCollection
A CompilerErrorCollection that contains the errors and warnings raised during the text template transformation process.

Remarks

Errors that occur during the text template transformation process are stored in this property. The engine passes the errors to the host when it is done processing, and the host can decide how to display them. For example the host can display the errors in the UI or write them to a file. The user should not access this property directly.

.NET Framework Security

See Also

Reference

TextTransformation Class

TextTransformation Members

Microsoft.VisualStudio.TextTemplating Namespace

CompilerErrorCollection

Error

Warning

Other Resources

How to: Generate Errors and Warnings from Text Templates