Gets an instance of the specified template.
Namespace: CodeSmith.EngineAssembly: CodeSmith.Engine (in CodeSmith.Engine.dll) Version: 6.0.0.0 (7.0.0.15127)
Syntax
C# |
---|
public CodeTemplate GetCodeTemplateInstance( string templatePath, bool forceRecompile ) |
Visual Basic |
---|
Public Function GetCodeTemplateInstance ( templatePath As String, forceRecompile As Boolean ) As CodeTemplate |
Parameters
- templatePath
- Type: System..::..String
Path to the template.
- forceRecompile
- Type: System..::..Boolean
Forces the template to be recompiled instead of using the cache.
Return Value
Type: CodeTemplateThe CodeTemplate instance.