Click or drag to resize

CodeGenerationEngineBaseEmitOutputForElementsTElement Method

Emits the output for elements.

Namespace:  SD.LLBLGen.Pro.GeneratorCore
Assembly:  SD.LLBLGen.Pro.GeneratorCore (in SD.LLBLGen.Pro.GeneratorCore.dll) Version: 5.11.0.0 (5.11.23.1114)
Syntax
protected bool EmitOutputForElements<TElement>(
	string destinationFolderFormat,
	string filenameFormat,
	bool failWhenExistent,
	string templateID,
	Assembly compiledTemplatesAssembly,
	Dictionary<string, TaskParameter> parameters,
	ICollection<TElement> elementsToTraverse,
	CodeGenerationEngineBaseEmitType emitTypeUsed,
	Func<TElement, string> nameProducerFunc,
	Func<TElement, string> fullNameProducerFunc,
	Func<TElement, string> elementTypeNameProducerFunc,
	Func<TElement, string> groupNameProducerFunc,
	string dependentUponFilenameFormat,
	Func<TElement, string, string> preFormatFunc = null
)
where TElement : class

Parameters

destinationFolderFormat
Type: SystemString
The destination folder format as specified in the parameters of the task.
filenameFormat
Type: SystemString
The filename format.
failWhenExistent
Type: SystemBoolean
if set to [fail when existent].
templateID
Type: SystemString
The template ID.
compiledTemplatesAssembly
Type: System.ReflectionAssembly
The compiled templates assembly.
parameters
Type: System.Collections.GenericDictionaryString, TaskParameter
The parameters.
elementsToTraverse
Type: System.Collections.GenericICollectionTElement
The elements to traverse.
emitTypeUsed
Type: SD.LLBLGen.Pro.GeneratorCoreCodeGenerationEngineBaseEmitType
The emit type used.
nameProducerFunc
Type: SystemFuncTElement, String
The name producer func.
fullNameProducerFunc
Type: SystemFuncTElement, String
The full name producer func.
elementTypeNameProducerFunc
Type: SystemFuncTElement, String
The element type name producer func.
groupNameProducerFunc
Type: SystemFuncTElement, String
The group name producer function.
dependentUponFilenameFormat
Type: SystemString
The dependent upon filename format.
preFormatFunc (Optional)
Type: SystemFuncTElement, String, String
Optional func which preformats the foldername based on the element specified and returns a string to process further.

Type Parameters

TElement
The type of the element.

Return Value

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