Method Preview
- Namespace
- ReportWright.Data
- Assembly
- ReportWright.Data.Abstractions.dll
Preview(ReportDefinition, string, IDictionary<string, ReportParameterValue>?, int, CancellationToken)
Reads a capped sample of a dataset's rows.
public DataPreview Preview(ReportDefinition definition, string dataSetName, IDictionary<string, ReportParameterValue>? parameters, int maxRows, CancellationToken cancellationToken)
Parameters
definitionReportDefinitionThe report.
dataSetNamestringThe dataset's name.
parametersIDictionary<string, ReportParameterValue>Parameter values the query may read, or null.
maxRowsintThe most rows to return.
cancellationTokenCancellationTokenCancels the read.
Returns
- DataPreview
The sample; Truncated says whether the source had more.
Exceptions
- ArgumentOutOfRangeException
maxRowsis not positive.