 | Output.ToPath Method |
Exports the Bill of Materials (BOM) data using the specified template file and saves it to the provided file or directory path.
Namespace: CeliAPS.BomApiAssembly: BomApi (in BomApi.dll) Version: 1.0.63
SyntaxTask ToPath(
string outputPath,
string templateFilename,
OutputFormatEnum outputFormat = OutputFormatEnum.Default,
CancellationToken cancellationToken = default
)
Function ToPath (
outputPath As String,
templateFilename As String,
Optional outputFormat As OutputFormatEnum = OutputFormatEnum.Default,
Optional cancellationToken As CancellationToken = Nothing
) As Task
Parameters
- outputPath String
- The file path for saving the exported BOM data or directory path if template is configured to export multiple files.
- templateFilename String
- The filename of the template to be used for exporting.
- outputFormat OutputFormatEnum (Optional)
- Used to determinate the format of output file when generating report to multiple files.
- cancellationToken CancellationToken (Optional)
- A cancellation token that can be used to cancel the export operation.
Return Value
Task
See Also