Constructor ExportFormat
- Namespace
- ReportWright.AspNetCore
- Assembly
- ReportWright.AspNetCore.dll
ExportFormat(string, string, string, Action<ExportRequest, Stream, CancellationToken>)
Initializes a format.
public ExportFormat(string name, string contentType, string fileExtension, Action<ExportRequest, Stream, CancellationToken> write)
Parameters
namestringThe name a URL uses:
PDF,XLSX.contentTypestringThe media type.
fileExtensionstringThe extension, without a dot.
writeAction<ExportRequest, Stream, CancellationToken>Writes the export to a stream.