Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ITextTemplating Interface

The principal interface of the text template transformation service in Visual Studio, STextTemplating.

This API is not CLS-compliant. 

Namespace:  Microsoft.VisualStudio.TextTemplating.VSHost
Assembly:  Microsoft.VisualStudio.TextTemplating.Interfaces.10.0 (in Microsoft.VisualStudio.TextTemplating.Interfaces.10.0.dll)

[CLSCompliantAttribute(false)]
public interface ITextTemplating

The ITextTemplating type exposes the following members.

  NameDescription
Public methodBeginErrorSessionCall this method before you process multiple text templates. Each type of error will be reported only once, until you call EndErrorSession.
Public methodEndErrorSessionAfter processing a batch of templates, return to reporting every error.
Public methodPreprocessTemplateProcess a text template to produce source code that can be invoked at run time.
Public methodProcessTemplateProcess the template file as a design-time template, so as to produce completed output.
Top

ITextTemplating tt = ServiceProvider.GetService(typeof(STextTemplating)) as ITextTemplating;

For more information, see Invoking Text Transformation in a VS Extension and Design-Time Code Generation by using T4 Text Templates.

Community Additions

ADD
Show:
© 2015 Microsoft