Table of Contents

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

name string

The name a URL uses: PDF, XLSX.

contentType string

The media type.

fileExtension string

The extension, without a dot.

write Action<ExportRequest, Stream, CancellationToken>

Writes the export to a stream.