Click or drag to resize
IFileTypeManagerBuildNativeGenerator Method (IPersistentFileConversionProperties)
Helper function used by the file type manager implementation and other components that need to create a file generator component from a specific file type definition.

Creates and initializes a file generator that can be used to write native output files.

Namespace: Sdl.FileTypeSupport.Framework.IntegrationApi
Assembly: Sdl.FileTypeSupport.Framework.Core (in Sdl.FileTypeSupport.Framework.Core.dll) Version: 1.0.0.0 (1.0.2551.0)
Syntax
IFileGenerator BuildNativeGenerator(
	IPersistentFileConversionProperties fileConversionProperties
)

Parameters

fileConversionProperties
Type: Sdl.FileTypeSupport.Framework.NativeApiIPersistentFileConversionProperties
Properties with information on the file being generated, including the id of the file type definition used to convert the original native file. This can either be the persistent file properties that were created when reading the original native file, or they can be retrieved from the bilingual parser.

Return Value

Type: IFileGenerator
A file generator object that can be used to create a single native file.
Exceptions
ExceptionCondition
FileTypeDefinitionNotFoundExceptionthrown if the specified file type definition ID is not one of the file type definitions in the file type manager
Remarks
This method may be used as a NativeGeneratorProvider delegate in the IMultiFileConverter.
Examples
The following example shows how to use this method with a multi file converter:
void SetNativeGeneratorProvider(IFileTypeManager manager, IMultiFileConverter converter)
{
   converter.NativeGeneratorProvider = new NativeGeneratorProvider(manager.BuildFileGenerator);
}
See Also
Community
Edit

Be the first to Edit the community content of this topic.
Comments