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, bool shareContextData ) |
Visual Basic |
---|
Public Function GetCodeTemplateInstance ( templatePath As String, forceRecompile As Boolean, shareContextData 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.
- shareContextData
- Type: System..::..Boolean
Share template context data with the child template instance.
Return Value
Type: CodeTemplateThe CodeTemplate instance.