| ConditionParserParseExpression Method (String, ConfigurationItemFactory) |
Namespace:
NLog.Conditions
Assembly:
NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax public static ConditionExpression ParseExpression(
string expressionText,
ConfigurationItemFactory configurationItemFactories
)
Public Shared Function ParseExpression (
expressionText As String,
configurationItemFactories As ConfigurationItemFactory
) As ConditionExpression
Dim expressionText As String
Dim configurationItemFactories As ConfigurationItemFactory
Dim returnValue As ConditionExpression
returnValue = ConditionParser.ParseExpression(expressionText,
configurationItemFactories)
static member ParseExpression :
expressionText : string *
configurationItemFactories : ConfigurationItemFactory -> ConditionExpression
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:
ConditionExpressionThe root of the expression syntax tree which can be used to get the value of the condition in a specified context.
See Also