Method PreviewDataSetAsync
- Namespace
- ReportWright.Blazor.Designer
- Assembly
- ReportWright.Blazor.Designer.dll
PreviewDataSetAsync(byte[], string, string?, int, CancellationToken)
Runs one of the definition's datasets and returns its first rows, for the dataset dialog.
public override Task<DataPreview?> PreviewDataSetAsync(byte[] rdl, string dataSetName, string? path, int maxRows, CancellationToken cancellationToken)
Parameters
rdlbyte[]The current definition.
dataSetNamestringThe dataset.
pathstringThe report's path, for the host's permission check, or null for an unsaved report.
maxRowsintThe most rows wanted; the host may cap it lower.
cancellationTokenCancellationTokenCancels the request.
Returns
- Task<DataPreview>
The rows, or null when the host offers no preview.