[]
Initializes a new instance of the ReportParameter class with a single value.
public ReportParameter(string name, object value)
Type | Name | Description |
---|---|---|
string | name | The name of the report parameter. |
object | value | The value of the report parameter. |
Initializes a new instance of the ReportParameter class with multiple values.
public ReportParameter(string name, ICollection<object> values)
Type | Name | Description |
---|---|---|
string | name | The name of the report parameter. |
ICollection<object> | values | The collection of values for the report parameter. |
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);
Initializes a new instance of the ReportParameter class without any values.
public ReportParameter(string name)
Type | Name | Description |
---|---|---|
string | name | The name of the report parameter. |