[]
Gets a stream for the specified report descriptor.
public Stream GetReportStream(SampleReportDescriptor reportDescriptor)
Type | Name | Description |
---|---|---|
SampleReportDescriptor | reportDescriptor | The descriptor of the report to retrieve the stream for. |
Type | Description |
---|---|
Stream | A Stream representing the report data. |
ISampleReportsProvider provider = new DefaultSampleReportsProvider("directoryPath");
SampleReportDescriptor reportDescriptor = provider.Reports.First();
Stream reportStream = provider.GetReportStream(reportDescriptor);
Type | Condition |
---|---|
FileNotFoundException | Thrown when the report file does not exist. |