Share via


TemplatedPreprocessor.ProcessTemplate Method

Create source code that can later be compiled and run to generate the output defined by the template.

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

Syntax

'Declaration
Protected Overrides Function ProcessTemplate ( _
    inputFileName As String, _
    inputFileContent As String, _
    processor As ITextTemplating, _
    hierarchy As IVsHierarchy _
) As String
protected override string ProcessTemplate(
    string inputFileName,
    string inputFileContent,
    ITextTemplating processor,
    IVsHierarchy hierarchy
)
protected:
virtual String^ ProcessTemplate(
    String^ inputFileName, 
    String^ inputFileContent, 
    ITextTemplating^ processor, 
    IVsHierarchy^ hierarchy
) override
abstract ProcessTemplate : 
        inputFileName:string * 
        inputFileContent:string * 
        processor:ITextTemplating * 
        hierarchy:IVsHierarchy -> string 
override ProcessTemplate : 
        inputFileName:string * 
        inputFileContent:string * 
        processor:ITextTemplating * 
        hierarchy:IVsHierarchy -> string 
protected override function ProcessTemplate(
    inputFileName : String, 
    inputFileContent : String, 
    processor : ITextTemplating, 
    hierarchy : IVsHierarchy
) : String

Parameters

  • inputFileName
    Type: System.String
    The file name of the template, used to identify the template in error reports. Optional.

Return Value

Type: System.String
Source code that can be compiled and run to produce the output defined by the template..

Remarks

For more information, see Run-Time Text Generation by using Preprocessed T4 Text Templates.

.NET Framework Security

See Also

Reference

TemplatedPreprocessor Class

Microsoft.VisualStudio.TextTemplating.VSHost Namespace