|
|
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
Use in embedded content to execute statements in the embedding context.
Assembly: Smartsite.Runtime.Modules (in Smartsite.Runtime.Modules.dll)
Syntax
| C# | |
|---|---|
[] public static EvalInHost( context, expression ) | |
| Visual Basic (Declaration) | |
|---|---|
<> _ 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
SystemViperModule Class
Smartsite.Runtime.Modules Namespace