EvaluationOptions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Options for evaluating LG templates.
public class EvaluationOptions
type EvaluationOptions = class
Public Class EvaluationOptions
- Inheritance
-
EvaluationOptions
Constructors
EvaluationOptions() |
Initializes a new instance of the EvaluationOptions class. |
EvaluationOptions(EvaluationOptions) |
Initializes a new instance of the EvaluationOptions class. |
EvaluationOptions(IList<String>) |
Initializes a new instance of the EvaluationOptions class. |
Properties
CacheScope |
Gets or sets cache scope of the evaluation result. |
LineBreakStyle |
Gets or sets the option of rendering new line characters. |
Locale |
Gets or sets the locale for evaluating LG. |
NullSubstitution |
Gets or sets the option of a function to replace a null value. If nullSubstitution is specified, LG evaluator will not throw null exception even the strictMode is on. |
OnEvent |
Gets or sets an event handler that handles the emitted events in the evaluation process. |
StrictMode |
Gets or sets the option of whether throwing an error when evaluating a null reference. |
Methods
Merge(EvaluationOptions) |
Merge a incoming option to current option. If a property in incoming option is not null while it is null in current option, then the value of this property will be overwritten. |