The EvaluationContext type exposes the following members.
Back to Top
Back to Top
Back to Top
Back to Top
Constructors
Name | Description | |
---|---|---|
EvaluationContext |
Creates new EvaluationContext which takes the default values from resolver. Note that these can be modified during evaluation process via macro parameters.
|
Methods
Name | Description | |
---|---|---|
AddInnerSource |
Adds inner source(s) to this instance of the context.
| |
AddPrioritizedInnerSource |
Adds prioritized inner source(s) to this instance of the context.
| |
ClearInnerSources |
Clears all inner sources (does not clear parent inner sources).
| |
ClearPrioritizedInnerSources |
Clears all prioritized inner sources (does not clear parent inner sources).
| |
CreateChildContext |
Creates child context (clones the parent settings and creates child of the resolver).
| |
CreateChildContext(Boolean) |
Creates child context (clones the parent settings and creates child of the resolver).
| |
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetInnerSources |
Returns list of all aggregated inner sources (from the whole context hierarchy).
| |
GetPrioritizedInnerSources |
Returns list of all aggregated prioritized inner sources (from the whole context hierarchy).
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Extension Methods
Name | Description | |
---|---|---|
GetAPIString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
GetString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
ToBoolean |
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDateTime |
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDouble |
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToGuid |
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToInteger |
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToString |
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.) |
Properties
Name | Description | |
---|---|---|
AllowOnlySimpleMacros |
Determines whether only simple macros (macros which do not require security check) are allowed.
| |
CaseSensitive |
Determines whether string comparison and other operations are case sensitive. False by default.
| |
ConsoleOutput |
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).
| |
Culture |
Culture under which the expression is evaluated. Important for parsing double / datetime from string constants, etc. EN-US by default.
| |
CultureInfo |
CultureInfo reflecting Culture property.
| |
Debug |
Determines if the evaluation debugs details
| |
DefaultValue |
Default value of the evaluation. Used when result of the whole macro is empty string.
| |
DetailedDebug |
Determines if the evaluation debugs details
| |
EncapsulateMacroObjects |
If true, the object will be encapsulated to its macro representations
| |
Encode |
Determines whether the result of the expression should be encoded or not.
| |
EvaluationStarted |
Time when the evaluation started (needed for timeout evaluation).
| |
EvaluationTimeout |
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.
| |
HandleSQLInjection |
Determines whether the apostrophes in the result will be doubled to handle SQL injection.
| |
Hash |
Gets or sets the hash against which the security is checked.
| |
CheckSecurity |
Main setting determining whether the macro security (signatures) is checked.
| |
IntegrityPassed |
Determines whether the security parameters are consistent with the evaluated macro.
| |
NotRecursive |
Determines whether the macros in the result should be resolved as well.
| |
OriginalExpression |
Gets or sets the expression which is being evaluated.
| |
OriginalExpressionType |
Gets or sets the type of the expression which is being evaluated (% or $ or ?).
| |
RelatedObject |
Related object allows set object used for resolving in macro method. Used in web part properties.
| |
Resolver |
Resolver which is used for the expression evaluation.
| |
ResolverName |
Gets or sets the name of the resolver which can resolve this macro (reflects inline |(resolver) parameter).
| |
User |
Gets the user associated with this context (based on the UserName property)
| |
UserName |
Gets or sets the username against which the security is checked.
|
See Also