SPUrlExpressionEditor.EvaluateExpression Method
Evaluates an expression string and provides the design-time value for a control property.
Namespace: Microsoft.SharePoint.Publishing.WebControls
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
Syntax
'Declaration
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
Public Overrides Function EvaluateExpression ( _
expression As String, _
parseTimeData As Object, _
propertyType As Type, _
serviceProvider As IServiceProvider _
) As Object
'Usage
Dim instance As SPUrlExpressionEditor
Dim expression As String
Dim parseTimeData As Object
Dim propertyType As Type
Dim serviceProvider As IServiceProvider
Dim returnValue As Object
returnValue = instance.EvaluateExpression(expression, _
parseTimeData, propertyType, serviceProvider)
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
public override Object EvaluateExpression(
string expression,
Object parseTimeData,
Type propertyType,
IServiceProvider serviceProvider
)
Parameters
- expression
Type: System.String
An expression string to evaluate. The expression does not include the expression prefix.
- parseTimeData
Type: System.Object
This parameter is not currently in use.
- propertyType
Type: System.Type
A string to evaluate that identifies the type of property.
- serviceProvider
Type: System.IServiceProvider
This parameter is not currently in use.
Return Value
Type: System.Object
A String object that represents the expression string that was evaluated, if the expression evaluation succeeded; otherwise, a null reference.