EvaluationContext MembersKentico 8.1 API Reference
The EvaluationContext type exposes the following members.
Constructors

  NameDescription
Public methodEvaluationContext
Creates new EvaluationContext which takes the default values from resolver. Note that these can be modified during evaluation process via macro parameters.
Back to Top
Methods

  NameDescription
Public methodAddInnerSource
Adds inner source(s) to this instance of the context.
Public methodAddPrioritizedInnerSource
Adds prioritized inner source(s) to this instance of the context.
Public methodClearInnerSources
Clears all inner sources (does not clear parent inner sources).
Public methodClearPrioritizedInnerSources
Clears all prioritized inner sources (does not clear parent inner sources).
Public methodCreateChildContext 
Creates child context (clones the parent settings and creates child of the resolver).
Public methodCreateChildContext(Boolean)
Creates child context (clones the parent settings and creates child of the resolver).
Public methodOnlineEquals
Determines whether the specified OnlineObject is equal to the current OnlineObject.
(Inherited from OnlineObject.)
Protected methodOnlineFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from OnlineObject.)
Public methodOnlineGetHashCode
Serves as a hash function for a particular type.
(Inherited from OnlineObject.)
Public methodGetInnerSources
Returns list of all aggregated inner sources (from the whole context hierarchy).
Public methodGetPrioritizedInnerSources
Returns list of all aggregated prioritized inner sources (from the whole context hierarchy).
Public methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
Protected methodOnlineMemberwiseClone
Creates a shallow copy of the current OnlineObject.
(Inherited from OnlineObject.)
Public methodOnlineToString
Returns a string that represents the current object.
(Inherited from OnlineObject.)
Back to Top
Extension Methods

  NameDescription
Public Extension MethodAsValue
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.)
Public Extension MethodGetAPIString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodToBoolean
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDateTime
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDouble
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToGuid
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToInteger
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToString
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.)
Back to Top
Properties

  NameDescription
Public propertyAllowOnlySimpleMacros
Determines whether only simple macros (macros which do not require security check) are allowed.
Public propertyCaseSensitive
Determines whether string comparison and other operations are case sensitive. False by default.
Public propertyConsoleOutput
Console output - place where the results can be written during macro evaluation using a "print" method. All child contexts share the output with the parent context (= there is only one console output).
Public propertyCulture
Culture under which the expression is evaluated. Important for parsing double / datetime from string constants, etc. EN-US by default.
Public propertyCultureInfo
CultureInfo reflecting Culture property.
Public propertyDebug
Determines if the evaluation debugs details
Public propertyDefaultValue
Default value of the evaluation. Used when result of the whole macro is empty string.
Public propertyDetailedDebug
Determines if the evaluation debugs details
Public propertyEncapsulateMacroObjects
If true, the object will be encapsulated to its macro representations
Public propertyEncode
Determines whether the result of the expression should be encoded or not.
Public propertyEvaluationStarted
Time when the evaluation started (needed for timeout evaluation).
Public propertyEvaluationTimeout
Expression evaluation timeout in milliseconds (1000 ms by default). If the evaluation time of the expression exceeds this time, evaluation will be aborted and the result will be null. The evaluation abortion is then logged into event log.
Public propertyHandleSQLInjection
Determines whether the apostrophes in the result will be doubled to handle SQL injection.
Public propertyHash
Gets or sets the hash against which the security is checked.
Public propertyCheckSecurity
Main setting determining whether the macro security (signatures) is checked.
Public propertyIntegrityPassed
Determines whether the security parameters are consistent with the evaluated macro.
Public propertyNotRecursive
Determines whether the macros in the result should be resolved as well.
Public propertyOriginalExpression
Gets or sets the expression which is being evaluated.
Public propertyOriginalExpressionType
Gets or sets the type of the expression which is being evaluated (% or $ or ?).
Public propertyRelatedObject
Related object allows set object used for resolving in macro method. Used in web part properties.
Public propertyResolver
Resolver which is used for the expression evaluation.
Public propertyResolverName
Gets or sets the name of the resolver which can resolve this macro (reflects inline |(resolver) parameter).
Public propertyUser
Gets the user associated with this context (based on the UserName property)
Public propertyUserName
Gets or sets the username against which the security is checked.
Back to Top
See Also