CodeGenerationEngineBase.EmitOutputForElements<TElement> Method |
Emits the output for elements.
Namespace:
SD.LLBLGen.Pro.GeneratorCore
Assembly:
SD.LLBLGen.Pro.GeneratorCore (in SD.LLBLGen.Pro.GeneratorCore.dll) Version: 5.4.0.0 (5.4.0)
Syntax protected bool EmitOutputForElements<TElement>(
string destinationFolderFormat,
string filenameFormat,
bool failWhenExistent,
string templateID,
Assembly compiledTemplatesAssembly,
Dictionary<string, TaskParameter> parameters,
ICollection<TElement> elementsToTraverse,
CodeGenerationEngineBase.EmitType emitTypeUsed,
Func<TElement, string> nameProducerFunc,
Func<TElement, string> fullNameProducerFunc,
Func<TElement, string> elementTypeNameProducerFunc,
Func<TElement, string> groupNameProducerFunc,
string dependentUponFilenameFormat
)
where TElement : class
Protected Function EmitOutputForElements(Of TElement As Class) (
destinationFolderFormat As String,
filenameFormat As String,
failWhenExistent As Boolean,
templateID As String,
compiledTemplatesAssembly As Assembly,
parameters As Dictionary(Of String, TaskParameter),
elementsToTraverse As ICollection(Of TElement),
emitTypeUsed As CodeGenerationEngineBase.EmitType,
nameProducerFunc As Func(Of TElement, String),
fullNameProducerFunc As Func(Of TElement, String),
elementTypeNameProducerFunc As Func(Of TElement, String),
groupNameProducerFunc As Func(Of TElement, String),
dependentUponFilenameFormat As String
) As Boolean
Parameters
- destinationFolderFormat
- Type: System.String
The destination folder format as specified in the parameters of the task. - filenameFormat
- Type: System.String
The filename format. - failWhenExistent
- Type: System.Boolean
if set to true [fail when existent]. - templateID
- Type: System.String
The template ID. - compiledTemplatesAssembly
- Type: System.Reflection.Assembly
The compiled templates assembly. - parameters
- Type: System.Collections.Generic.Dictionary<String, TaskParameter>
The parameters. - elementsToTraverse
- Type: System.Collections.Generic.ICollection<TElement>
The elements to traverse. - emitTypeUsed
- Type: SD.LLBLGen.Pro.GeneratorCore.CodeGenerationEngineBase.EmitType
The emit type used. - nameProducerFunc
- Type: System.Func<TElement, String>
The name producer func. - fullNameProducerFunc
- Type: System.Func<TElement, String>
The full name producer func. - elementTypeNameProducerFunc
- Type: System.Func<TElement, String>
The element type name producer func. - groupNameProducerFunc
- Type: System.Func<TElement, String>
The group name producer function. - dependentUponFilenameFormat
- Type: System.String
The dependent upon filename format.
Type Parameters
- TElement
- The type of the element.
Return Value
Type:
Boolean
true if succeeded, false if failed
See Also