Engine Class Home
This page is specific to:.NET Framework Version:3.5
Domain-Specific Language Tools Reference
Engine Class

The text template transformation engine.

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

Syntax

'Utilizzo

Dim instance As Engine

'Dichiarazione

Public Class Engine _
    Implements ITextTemplatingEngine
Remarks

The text template transformation process takes a text template file as the input, and produces a new text file as the output. The text template transformation engine component controls the process, and interacts with a text template transformation host and one or more text template directive processors to complete the process. For more information, see Generating Artifacts By Using Text Templates.

Examples

The following example demonstrates how to create an instance of the Engine, and calling ProcessTemplate to transform a text template.

This code example is part of a larger example provided for the ITextTemplatingEngineHost interface.

Dim engine As Engine = New Engine()

'read the text template
Dim input As String = File.ReadAllText(templateFileName)

'transform the text template
Dim output As String = engine.ProcessTemplate(input, host)
Inheritance Hierarchy

System..::.Object
  Microsoft.VisualStudio.TextTemplating..::.Engine
Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also

Concepts

About Text Template Hosts

Reference

© 2009 Microsoft Corporation. Tutti i diritti riservati.   Condizioni per l'utilizzo | Marchi | Informativa sulla privacy
Page view tracker
Valuta la libreria Lightweight
x
Lightweight si basa su ScriptFree (loband) per aggiungere funzionalità richieste dagli utenti: SearchBox e selezione del linguaggio di codice predefinito.
Ti piace SearchBox?
Ti piacciono i blocchi di codice a schede?
Quanto è utile questo argomento?
Dicci di più.
Grazie
x
Con il tuo aiuto MSDN Online migliora.
Risposte
Cambia visualizzazione
Classica
Lightweight
ScriptFree
Cambia visualizzazione