Click or drag to resize

ConditionParserParseExpression Method (String, ConfigurationItemFactory)

Parses the specified condition string and turns it into ConditionExpression tree.

Namespace:  NLog.Conditions
Assembly:  NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntax
public static ConditionExpression ParseExpression(
	string expressionText,
	ConfigurationItemFactory configurationItemFactories
)

Parameters

expressionText
Type: SystemString
The expression to be parsed.
configurationItemFactories
Type: NLog.ConfigConfigurationItemFactory
Instance of ConfigurationItemFactory used to resolve references to condition methods and layout renderers.

Return Value

Type: ConditionExpression
The root of the expression syntax tree which can be used to get the value of the condition in a specified context.
See Also