ReportViewerForMvc/ReportExtensions.cs
/// <summary>
/// Set the ReportParameters of the specified ReportParameterInfoCollection.
/// </summary>
/// <param name="report">The Report that this method extends.</param>
/// <param name="collection">The collection whose ReportParameters should be added to the Report.</param>
Set the ReportParameters of the specified ReportParameterInfoCollection.
Set the ReportParameters of the specified ReportParameterInfoCollection .
public static void SetParameters(this Report report, ReportParameterInfoCollection collection)
        {
            if (report == null)
            {
                throw new ArgumentNullException("report", "Value cannot be null.");
            }
            if (collection == null)
            {
                throw new ArgumentNullException("collection", "Value cannot be null.");
            }
            foreach (ReportParameterInfo reportParameterInfo in collection)
            {
                report.SetParameters(reportParameterInfo);
            }
        }
public static void SetParameters ( this Report report , ReportParameterInfoCollection collection ) { if ( report == null ) { throw new ArgumentNullException ( " " , " " ) ; } if ( collection == null ) { throw new ArgumentNullException ( " " , " " ) ; } foreach ( ReportParameterInfo reportParameterInfo in collection ) { report . SetParameters ( reportParameterInfo ) ; } }
Set the ReportParameters of the specified ReportParameterInfoCollection.
Set the ReportParameters of the specified ReportParameterInfoCollection .
Report
this
collection
ReportParameterInfoCollection
The collection whose ReportParameters should be added to the Report.
The collection whose ReportParameters should be added to the Report .
report
The Report that this method extends.
The Report that this method extends .