Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.StringAn expression string to evaluate. The expression does not include the expression prefix.
parseTimeData
Type: System.ObjectThis parameter is not currently in use.
propertyType
Type: System.TypeA string to evaluate that identifies the type of property.
serviceProvider
Type: System.IServiceProviderThis 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.