DataFormParameter.Evaluate Method
Updates and returns the value of the DataFormParameter.
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Protected Overrides Function Evaluate ( _
context As HttpContext, _
control As Control _
) As Object
'Usage
Dim context As HttpContext
Dim control As Control
Dim returnValue As Object
returnValue = Me.Evaluate(context, _
control)
protected override Object Evaluate(
HttpContext context,
Control control
)
Parameters
context
Type: System.Web.HttpContextThe current context of the request.
control
Type: System.Web.UI.ControlThe control to which the parameter is bound.
Return Value
Type: System.Object
The value of the DataFormParameter.
Remarks
This override updates the value of the DataFormParameter object before returning it if the value of the ParameterValues property is null . If the ParameterKey value is null or an empty string, a SystemException is thrown.