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
- 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.
See Also
Reference
Microsoft.Data.Entity.Design.VisualStudio.TextTemplating Namespace