Gets or sets the parameter value.
Namespace: MindFusion.Reporting
Assembly: MindFusion.Reporting
SyntaxC#
Copy Code
|
|---|
public Object Value { get; set; } |
Visual Basic
Copy Code
|
|---|
Public Property Value As Object |
An object representing the parameter value.
RemarksAssigning this property automatically updates Type to reflect the type of the parameter. To create an expression parameter, the Type property needs to be assigned to Expression explicitly. Otherwise, the value will be interpreted as string.
ExampleThe following example creates a parameter with an expression value:
C#
Copy Code
|
|---|
ReportParameter parameter = new ReportParameter("DayOfMonth", "[Day(Now())]"); |
Visual Basic
Copy Code
|
|---|
Dim parameter As New ReportParameter("DayOfMonth", "[Day(Now())]") |
See Also