Adds a CodeTemplate instance to the current thread's TemplateContext.
Namespace: CodeSmith.EngineAssembly: CodeSmith.Engine (in CodeSmith.Engine.dll) Version: 6.0.0.0 (7.0.0.15127)
Syntax
C# |
---|
public static TemplateContext SetContext( CodeTemplate template ) |
Visual Basic |
---|
Public Shared Function SetContext ( template As CodeTemplate ) As TemplateContext |
Parameters
- template
- Type: CodeSmith.Engine..::..CodeTemplate
The currently executing CodeTemplate
Return Value
Type: TemplateContextAn instance of the current TemplateContext.