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: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
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