ITextTemplatingEngine.ProcessTemplate Method
Transforms the contents of a text template file to produce the generated text output.
Namespace: Microsoft.VisualStudio.TextTemplating
Assembly: Microsoft.VisualStudio.TextTemplating.Interfaces.10.0 (in Microsoft.VisualStudio.TextTemplating.Interfaces.10.0.dll)
Syntax
'Declaration
Function ProcessTemplate ( _
content As String, _
host As ITextTemplatingEngineHost _
) As String
string ProcessTemplate(
string content,
ITextTemplatingEngineHost host
)
String^ ProcessTemplate(
String^ content,
ITextTemplatingEngineHost^ host
)
abstract ProcessTemplate :
content:string *
host:ITextTemplatingEngineHost -> string
function ProcessTemplate(
content : String,
host : ITextTemplatingEngineHost
) : String
Parameters
- content
Type: System.String
The contents of the text template file to be transformed.
- host
Type: Microsoft.VisualStudio.TextTemplating.ITextTemplatingEngineHost
The ITextTemplatingEngineHost that will host this engine.
Return Value
Type: System.String
The generated text output of the text template file.
Remarks
This interface is not intended to be implemented by users.
Tip
If you are writing a package or extension that will run within Visual Studio, consider using the text templating service, instead of writing your own host. 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.