Share via


TemplateActivity.ProcessTemplate Method

Processes a text template by using the STextTemplatingService in Visual Studio.

Namespace:  Microsoft.Data.Entity.Design.VisualStudio.TextTemplating
Assembly:  Microsoft.Data.Entity.Design (in Microsoft.Data.Entity.Design.dll)

Syntax

'Declaration
Protected Function ProcessTemplate ( _
    templatePath As String _
) As String
'Usage
Dim templatePath As String
Dim returnValue As String

returnValue = Me.ProcessTemplate(templatePath)
protected string ProcessTemplate(
    string templatePath
)
protected:
String^ ProcessTemplate(
    String^ templatePath
)
protected function ProcessTemplate(
    templatePath : String
) : String

Parameters

  • templatePath
    Type: System.String
    The path to the text template to be processed.

Return Value

Type: System.String
The text template output that is generated by calling the
ITextTemplatingProcessTemplate(String, String, ITextTemplatingCallback, Object) method.

Remarks

The ProcessTemplate method resolves the provided template path that may contain Visual Studio macros, resolves referenced assemblies that contain Visual Studio macros, and processes the text template by calling the ITextTemplatingProcessTemplate(String, String, ITextTemplatingCallback, Object) method. For information about Visual Studio macros, see Macros for Build Commands and Properties.

Permissions

See Also

Reference

TemplateActivity Class

TemplateActivity Members

Microsoft.Data.Entity.Design.VisualStudio.TextTemplating Namespace

Other Resources

Windows Workflow

Generating Artifacts by Using Text Templates