This document is provided on an "AS IS" basis without warranties of any kind. Smartsite iXperion class libraries may change in future releases.
Executes the given expression in the parent context and returns the result.
Use in embedded content to execute statements in the embedding context.

Namespace: Smartsite.Runtime.Modules
Assembly:  Smartsite.Runtime.Modules (in Smartsite.Runtime.Modules.dll)

Syntax

C#Copy imageCopy Code
[]
public static  EvalInHost(
	 context,
	 expression
)
Visual Basic (Declaration)Copy imageCopy Code
<> _
Public Shared Function EvalInHost ( _
	context As , _
	expression As  _
) As 

Parameters

context
IRenderContext
The context.
expression
IExpressionEvaluator
The expression to execute.

Return Value

The result of the given expression.

Remarks

Only works when the embedding context explicitly allows calls by setting the 'anchor' property to true.

See Also

Advanced