Click or drag to resize
CodeGenerationEngineBaseEmitOutputToFileTElement Method
Emits the output to a file. It calls the template emitter for the active task and passes the input specified.

Namespace:  SD.LLBLGen.Pro.GeneratorCore
Assembly:  SD.LLBLGen.Pro.GeneratorCore (in SD.LLBLGen.Pro.GeneratorCore.dll) Version: 5.3.0.0 (5.3.0)
Syntax
protected bool EmitOutputToFile<TElement>(
	TElement currentElement,
	string destinationFilename,
	bool failWhenExistent,
	Assembly compiledTemplatesAssembly,
	string templateID,
	Dictionary<string, TaskParameter> parameters,
	bool isPartOfSet,
	string outputDescription,
	string dependentUponFilename
)

Parameters

currentElement
Type: TElement
The current element.
destinationFilename
Type: SystemString
The destination filename.
failWhenExistent
Type: SystemBoolean
if set to [fail when existent].
compiledTemplatesAssembly
Type: System.ReflectionAssembly
The compiled templates assembly.
templateID
Type: SystemString
The template ID.
parameters
Type: System.Collections.GenericDictionaryString, TaskParameter
The parameters.
isPartOfSet
Type: SystemBoolean
if set to this element is part of a set (1 or more elements to emit) and subtasks are therefore used
outputDescription
Type: SystemString
The output description which is emitted into log lines after 'code generated for'.
dependentUponFilename
Type: SystemString
The dependent upon filename. can be empty

Type Parameters

TElement
The type of the element.

Return Value

Type: Boolean
true if succeeded, false if failed
See Also