[]
Uses a custom resource store provider.
public ReportViewerConfiguration UseResourceProvider(IReportResourceProvider reportResourcesPro)
Type | Name | Description |
---|---|---|
IReportResourceProvider | reportResourcesPro | A IReportResourceProvider object representing the custom resource store provider. |
Type | Description |
---|---|
ReportViewerConfiguration | The current ReportViewerConfiguration instance. |
app.UseReportViewer(config =>
{
// Your implementation of IReportResourceProvider.
config.UseResourceProvider(reportResourcesPro);
});
Type | Condition |
---|---|
ArgumentNullException | Thrown if |
Uses a custom resource store provider.
public ReportViewerConfiguration UseResourceProvider(GetResourceFn getResource)
Type | Name | Description |
---|---|---|
GetResourceFn | getResource | A delegate GetResourceFn that retrieves the resource based on the specified resource information |
Type | Description |
---|---|
ReportViewerConfiguration | The current ReportViewerConfiguration instance. |
Stream GetResource(ResourceInfo resource)
{
// Your implementation of getting a resource.
}
app.UseReportViewer(config =>
{
config.UseResourceProvider(GetResource);
});
Type | Condition |
---|---|
ArgumentNullException | Thrown if |