Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.
- inputFileContent
Type: System.String
The text of the template.
- processor
Type: Microsoft.VisualStudio.TextTemplating.VSHost.ITextTemplating
A text templating service.
- hierarchy
Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchy
The Visual Studio solution explorer hierarchy. This is used to help resolve file paths. 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.