[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Viewer.Win.ReportParameter.-ctor

ReportParameter Constructor

ReportParameter(string, object)

Initializes a new instance of the ReportParameter class with a single value.

Declaration
public ReportParameter(string name, object value)
Parameters
Type Name Description
string name

The name of the report parameter.

object value

The value of the report parameter.

ReportParameter(string, ICollection<object>)

Initializes a new instance of the ReportParameter class with multiple values.

Declaration
public ReportParameter(string name, ICollection<object> values)
Parameters
Type Name Description
string name

The name of the report parameter.

ICollection<object> values

The collection of values for the report parameter.

Examples

This snippet shows how to create a new ReportParameter.

List<object> values = new List<object> { 1, 2, 3, "Hello", DateTime.Now };
ReportParameter parameter = new ReportParameter("MyParameter", values);

ReportParameter(string)

Initializes a new instance of the ReportParameter class without any values.

Declaration
public ReportParameter(string name)
Parameters
Type Name Description
string name

The name of the report parameter.