Share via


Engine.PreprocessTemplate Method

Definition

Process the contents of a templated file running inline code to produce a class that represents the template.

public:
 virtual System::String ^ PreprocessTemplate(System::String ^ content, Microsoft::VisualStudio::TextTemplating::ITextTemplatingEngineHost ^ host, System::String ^ className, System::String ^ classNamespace, [Runtime::InteropServices::Out] System::String ^ % language, [Runtime::InteropServices::Out] cli::array <System::String ^> ^ % references);
public string PreprocessTemplate (string content, Microsoft.VisualStudio.TextTemplating.ITextTemplatingEngineHost host, string className, string classNamespace, out string language, out string[] references);
abstract member PreprocessTemplate : string * Microsoft.VisualStudio.TextTemplating.ITextTemplatingEngineHost * string * string * string * String[] -> string
override this.PreprocessTemplate : string * Microsoft.VisualStudio.TextTemplating.ITextTemplatingEngineHost * string * string * string * String[] -> string
Public Function PreprocessTemplate (content As String, host As ITextTemplatingEngineHost, className As String, classNamespace As String, ByRef language As String, ByRef references As String()) As String

Parameters

content
String

The content of the templated file

host
ITextTemplatingEngineHost

The hosting environment using this engine

className
String

The name of the class to produce

classNamespace
String

The namespace of the class to produce

language
String

The language that the template's control code was written in

references
String[]

The set of references required by the template

Returns

Implements

Applies to