ITextTemplating.ProcessTemplate Method
Process the template file as a design-time template, so as to produce completed output.
Namespace: Microsoft.VisualStudio.TextTemplating.VSHost
Assembly: Microsoft.VisualStudio.TextTemplating.Interfaces.10.0 (in Microsoft.VisualStudio.TextTemplating.Interfaces.10.0.dll)
Syntax
'Declaration
Function ProcessTemplate ( _
inputFile As String, _
content As String, _
callback As ITextTemplatingCallback, _
hierarchy As Object _
) As String
string ProcessTemplate(
string inputFile,
string content,
ITextTemplatingCallback callback,
Object hierarchy
)
String^ ProcessTemplate(
String^ inputFile,
String^ content,
ITextTemplatingCallback^ callback,
Object^ hierarchy
)
abstract ProcessTemplate :
inputFile:string *
content:string *
callback:ITextTemplatingCallback *
hierarchy:Object -> string
function ProcessTemplate(
inputFile : String,
content : String,
callback : ITextTemplatingCallback,
hierarchy : Object
) : String
Parameters
- inputFile
Type: System.String
The filename of the template, for reference in error reports. Optional.
- content
Type: System.String
The text of the template.
- callback
Type: Microsoft.VisualStudio.TextTemplating.VSHost.ITextTemplatingCallback
A class that you provide to handle error messages. Optional.
- hierarchy
Type: System.Object
The location of the template file in the Visual Studio solution hierarchy, for error reports. Optional.
Return Value
Type: System.String
The text generated by the template..
Remarks
For more information, see Invoking Text Transformation in a VS Extension.
.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.