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

'宣言
Protected Friend ReadOnly Property Errors As CompilerErrorCollection
'使用
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.

Permissions

See Also

Concepts

How to: Generate Errors and Warnings from Text Templates

Reference

TextTransformation Class

TextTransformation Members

Microsoft.VisualStudio.TextTemplating Namespace

CompilerErrorCollection

[Overload:Microsoft.VisualStudio.TextTemplating.TextTransformation.Error]

[Overload:Microsoft.VisualStudio.TextTemplating.TextTransformation.Warning]